diff options
Diffstat (limited to 'ui/static/js/keyboard_handler.js')
-rw-r--r-- | ui/static/js/keyboard_handler.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/static/js/keyboard_handler.js b/ui/static/js/keyboard_handler.js index 718a4eeb..037f9949 100644 --- a/ui/static/js/keyboard_handler.js +++ b/ui/static/js/keyboard_handler.js @@ -15,10 +15,9 @@ class KeyboardHandler { let key = this.getKey(event); if (this.isEventIgnored(event, key) || this.isModifierKeyDown(event)) { return; - } else { - event.preventDefault(); } + event.preventDefault(); this.queue.push(key); for (let combination in this.shortcuts) { @@ -47,7 +46,6 @@ class KeyboardHandler { return event.target.tagName === "INPUT" || event.target.tagName === "TEXTAREA" || (this.queue.length < 1 && !this.triggers.includes(key)); - } isModifierKeyDown(event) { |