diff --git a/client/js/keybinds.js b/client/js/keybinds.js index f702e341..1ed82db8 100644 --- a/client/js/keybinds.js +++ b/client/js/keybinds.js @@ -107,6 +107,11 @@ const colorsHotkeys = { for (const hotkey in colorsHotkeys) { Mousetrap.bind("mod+" + hotkey, function(e) { + // Do not handle modifier hotkeys if input is not focused + if (document.activeElement !== input[0]) { + return; + } + e.preventDefault(); const modifier = colorsHotkeys[e.key];