aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-15 21:19:22 -0500
committerGitHub <noreply@github.com>2021-01-15 21:19:22 -0500
commitdc4d659184a61a55083e201438bff7732acece1b (patch)
treed3aa6cd09b32fed56cb00f42a172397e31aaa27a /ext/mixed
parent1c5e53a7acec1b58bb2da370d47075a4a0b36ca9 (diff)
Update hotkey issues (#1244)
* Scroll to the bottom when adding inputs * Skip if empty action
Diffstat (limited to 'ext/mixed')
-rw-r--r--ext/mixed/js/display.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index 67db9097..0924a5fe 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -1927,7 +1927,7 @@ class Display extends EventDispatcher {
this._hotkeys.clear();
for (const {action, key, modifiers, scopes, enabled} of options.inputs.hotkeys) {
- if (!enabled || !scopes.includes(this._pageType)) { continue; }
+ if (!enabled || action === '' || !scopes.includes(this._pageType)) { continue; }
this._registerHotkey(key, modifiers, action);
}
}