summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsabelle <hi@f2k1.de>2021-03-07 17:51:43 +0100
committerIsabelle <hi@f2k1.de>2021-03-07 17:51:43 +0100
commit25e8e7d23002e1c94b0d3bc8522bfea90b2d86dd (patch)
tree61e13d597099cd205bca24be062e2fe85cb08ba6
parent77bf0fcbd102321a228b5f7ff2e0361db5d784e1 (diff)
downloadwebmusic-nginx-25e8e7d23002e1c94b0d3bc8522bfea90b2d86dd.tar.gz
webmusic-nginx-25e8e7d23002e1c94b0d3bc8522bfea90b2d86dd.tar.bz2
webmusic-nginx-25e8e7d23002e1c94b0d3bc8522bfea90b2d86dd.zip
webmusic.js: ignore keyboard controls if ctrl or alt is pressed
-rw-r--r--webmusic.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/webmusic.js b/webmusic.js
index 931fbc5..ab1cce6 100644
--- a/webmusic.js
+++ b/webmusic.js
@@ -9,6 +9,7 @@ let repeat = false;
let total = 0;
const handleKeyEvent = (event) => {
+ if (event.ctrlKey === true || event.altKey === true) return;
switch (event.key) {
case ' ':
case 'p':