diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-16 21:52:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 21:52:32 -0500 |
commit | 0cbbe4869421d1796b4606db8263d33d7581679d (patch) | |
tree | 8c87c1aec6e1c92ac023fd42bd12a98fa875adf8 /ext/mixed/js | |
parent | 5c57015a79a79805638c6a97d13784372587e4f2 (diff) |
Add check to ignore hotkey registrations with null key (#1256)
Diffstat (limited to 'ext/mixed/js')
-rw-r--r-- | ext/mixed/js/hotkey-handler.js | 1 |
1 files changed, 1 insertions, 0 deletions
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) ) { |