aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-17 17:05:06 -0500
committerGitHub <noreply@github.com>2021-01-17 17:05:06 -0500
commit04d53e5642ddf4fe9a15f22df0c3892e53074739 (patch)
tree573f1b6028c24534bdb5c1502789cf236c7aeed5 /ext/mixed/js/display.js
parent14b4aee07dc3f69ad75518cf04cafe416e06f0c7 (diff)
Optimize hotkey registration (#1264)
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r--ext/mixed/js/display.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js
index c3e118c6..c017a2f1 100644
--- a/ext/mixed/js/display.js
+++ b/ext/mixed/js/display.js
@@ -1880,9 +1880,7 @@ class Display extends EventDispatcher {
}
_updateHotkeys(options) {
- const scope = this._pageType;
- this._hotkeyHandler.clearHotkeys(scope);
- this._hotkeyHandler.registerHotkeys(scope, options.inputs.hotkeys);
+ this._hotkeyHandler.setHotkeys(this._pageType, options.inputs.hotkeys);
}
async _closeTab() {