aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/search-main.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/search-main.js')
-rw-r--r--ext/bg/js/search-main.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/bg/js/search-main.js b/ext/bg/js/search-main.js
index 73bc6750..38c6f4dd 100644
--- a/ext/bg/js/search-main.js
+++ b/ext/bg/js/search-main.js
@@ -18,6 +18,7 @@
/* global
* DisplaySearch
* DocumentFocusController
+ * HotkeyHandler
* JapaneseUtil
* api
* wanakana
@@ -32,7 +33,11 @@
await yomichan.backendReady();
const japaneseUtil = new JapaneseUtil(wanakana);
- const displaySearch = new DisplaySearch(japaneseUtil, documentFocusController);
+
+ const hotkeyHandler = new HotkeyHandler();
+ hotkeyHandler.prepare();
+
+ const displaySearch = new DisplaySearch(japaneseUtil, documentFocusController, hotkeyHandler);
await displaySearch.prepare();
document.documentElement.dataset.loaded = 'true';