Remove _onMessage (#1265)

This commit is contained in:
toasted-nutbread 2021-01-17 18:43:16 -05:00 committed by GitHub
parent 04d53e5642
commit de5d3ec3ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,12 +169,6 @@ class HotkeyHandler extends EventDispatcher {
// Private
_onMessage({action, params}, sender, callback) {
const messageHandler = this._messageHandlers.get(action);
if (typeof messageHandler === 'undefined') { return false; }
return yomichan.invokeMessageHandler(messageHandler, params, callback, sender);
}
_onKeyDown(e) {
const key = e.code;
const hotkeyInfo = this._hotkeys.get(key);