perf: avoid searching shortcuts if ctrl or alt are not pressed

This commit is contained in:
quenousimporte 2023-10-03 13:57:56 +02:00
parent d493d6f5b6
commit a759008dd9
1 changed files with 1 additions and 1 deletions

View File

@ -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 =>