perf: avoid searching shortcuts if ctrl or alt are not pressed
This commit is contained in:
parent
d493d6f5b6
commit
a759008dd9
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
|
@ -2539,7 +2539,7 @@ function mainkeydownhandler()
|
||||||
}
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
else
|
else if (event.ctrlKey || event.altKey)
|
||||||
{
|
{
|
||||||
// notes shortcuts
|
// notes shortcuts
|
||||||
var note = localdata.find(n =>
|
var note = localdata.find(n =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue