From a759008dd9980316bd5c0cc380d56705a9e563e4 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 3 Oct 2023 13:57:56 +0200 Subject: [PATCH] perf: avoid searching shortcuts if ctrl or alt are not pressed --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 979e277..7df1e5b 100644 --- a/main.js +++ b/main.js @@ -2539,7 +2539,7 @@ function mainkeydownhandler() } event.preventDefault(); } - else + else if (event.ctrlKey || event.altKey) { // notes shortcuts var note = localdata.find(n =>