From 0cbbe4869421d1796b4606db8263d33d7581679d Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 16 Jan 2021 21:52:32 -0500 Subject: [PATCH] Add check to ignore hotkey registrations with null key (#1256) --- ext/mixed/js/hotkey-handler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/mixed/js/hotkey-handler.js b/ext/mixed/js/hotkey-handler.js index 01c33f5d..ef04ea0d 100644 --- a/ext/mixed/js/hotkey-handler.js +++ b/ext/mixed/js/hotkey-handler.js @@ -86,6 +86,7 @@ class HotkeyHandler extends EventDispatcher { for (const {action, key, modifiers, scopes, enabled} of hotkeys) { if ( enabled && + key !== null && action !== '' && scopes.includes(this._scope) ) {