summaryrefslogtreecommitdiff
path: root/ext/js/input
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/input')
-rw-r--r--ext/js/input/hotkey-handler.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/js/input/hotkey-handler.js b/ext/js/input/hotkey-handler.js
index 48c2de57..5969af05 100644
--- a/ext/js/input/hotkey-handler.js
+++ b/ext/js/input/hotkey-handler.js
@@ -51,7 +51,7 @@ export class HotkeyHandler extends EventDispatcher {
this._isPrepared = true;
this._updateEventHandlers();
yomitan.crossFrame.registerHandlers([
- ['HotkeyHandler.forwardHotkey', this._onMessageForwardHotkey.bind(this)]
+ ['hotkeyHandlerForwardHotkey', this._onMessageForwardHotkey.bind(this)]
]);
}
@@ -159,10 +159,7 @@ export class HotkeyHandler extends EventDispatcher {
// Message handlers
- /**
- * @param {{key: string, modifiers: import('input').ModifierKey[]}} details
- * @returns {boolean}
- */
+ /** @type {import('cross-frame-api').ApiHandler<'hotkeyHandlerForwardHotkey'>} */
_onMessageForwardHotkey({key, modifiers}) {
return this.simulate(key, modifiers);
}