Add check to ignore hotkey registrations with null key (#1256)
This commit is contained in:
parent
5c57015a79
commit
0cbbe48694
@ -86,6 +86,7 @@ class HotkeyHandler extends EventDispatcher {
|
|||||||
for (const {action, key, modifiers, scopes, enabled} of hotkeys) {
|
for (const {action, key, modifiers, scopes, enabled} of hotkeys) {
|
||||||
if (
|
if (
|
||||||
enabled &&
|
enabled &&
|
||||||
|
key !== null &&
|
||||||
action !== '' &&
|
action !== '' &&
|
||||||
scopes.includes(this._scope)
|
scopes.includes(this._scope)
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user