From dc4d659184a61a55083e201438bff7732acece1b Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 15 Jan 2021 21:19:22 -0500 Subject: Update hotkey issues (#1244) * Scroll to the bottom when adding inputs * Skip if empty action --- ext/mixed/js/display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mixed/js') 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); } } -- cgit v1.2.3