summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaura Hausmann <laura@hausmann.dev>2021-05-07 12:23:30 +0200
committerLeah (ctucx) <leah@ctu.cx>2021-05-07 12:28:00 +0200
commitac42fd4ab6820f5e840b13cbd03f3cdf0ae149ff (patch)
treedd19d161df04bbb75d949e72ffea0148115433b6
parentae445a4330e1436edcce6c35307a3b2a19970ae0 (diff)
downloadwebmusic-nginx-master.tar.gz
webmusic-nginx-master.tar.bz2
webmusic-nginx-master.zip
Fix keyevents for macOSHEADmaster
-rw-r--r--webmusic.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webmusic.js b/webmusic.js
index 80716da..2707b73 100644
--- a/webmusic.js
+++ b/webmusic.js
@@ -10,7 +10,7 @@ let total = 0;
let onlyDirs = true;
const handleKeyEvent = (event) => {
- if (event.ctrlKey === true || event.altKey === true) return;
+ if (event.ctrlKey === true || event.altKey === true || event.metaKey == true) return;
event.preventDefault();
event.stopPropagation();