From f806d154ee4e62fa31f2e51c491f61e6351aa011 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sat, 2 Nov 2019 02:20:09 +0100 Subject: [PATCH] Fix panning --- src/ext/lib/ActionHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext/lib/ActionHandler.js b/src/ext/lib/ActionHandler.js index 8b30499..4685219 100644 --- a/src/ext/lib/ActionHandler.js +++ b/src/ext/lib/ActionHandler.js @@ -217,7 +217,7 @@ class ActionHandler { execAction(actions, event, videoData) { this.logger.log('info', 'keyboard', "%c[ActionHandler::execAction] Trying to find and execute action for event. Actions/event: ", "color: #ff0", actions, event); - const isLatin = this.isLatin(event.key); + const isLatin = event.key ? this.isLatin(event.key) : true; for (var action of actions) { if (this.isActionMatch(action.shortcut, event, isLatin)) {