diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-17 16:55:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 16:55:45 -0500 |
commit | 14b4aee07dc3f69ad75518cf04cafe416e06f0c7 (patch) | |
tree | 407918a74817284cd9f1d474a6c7783033e7a4c6 /ext/bg/js/search.js | |
parent | 8ec48456e6d73e10239469c39e7862365db43739 (diff) |
Hotkey forwarding support (#1263)
* Add support for allowing HotkeyHandler to forward hotkeys
* Update hotkey registration
* Pass HotkeyHandler instance into Display* constructor
* Implement hotkey forwarding
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r-- | ext/bg/js/search.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js index 5963c03b..e2497264 100644 --- a/ext/bg/js/search.js +++ b/ext/bg/js/search.js @@ -23,8 +23,8 @@ */ class DisplaySearch extends Display { - constructor(japaneseUtil, documentFocusController) { - super('search', japaneseUtil, documentFocusController); + constructor(japaneseUtil, documentFocusController, hotkeyHandler) { + super('search', japaneseUtil, documentFocusController, hotkeyHandler); this._searchButton = document.querySelector('#search-button'); this._queryInput = document.querySelector('#search-textbox'); this._introElement = document.querySelector('#intro'); |