webmusic.js: ignore keyboard controls if ctrl or alt is pressed

This commit is contained in:
Isabelle 2021-03-07 17:51:43 +01:00 committed by Leah (ctucx)
parent acac39a90c
commit 6a8708bcf8

View file

@ -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':