diff --git a/src/core/binding.ts b/src/core/binding.ts index 33958667..b5dab5fd 100644 --- a/src/core/binding.ts +++ b/src/core/binding.ts @@ -86,6 +86,14 @@ export class Binding { private willBeInvokedByEvent(event: Event): boolean { const eventTarget = event.target + if ( + !(event instanceof KeyboardEvent) && + event instanceof Event && + (event.type === "keydown" || event.type === "keyup") + ) { + return false + } + if (event instanceof KeyboardEvent && this.action.shouldIgnoreKeyboardEvent(event)) { return false } diff --git a/src/tests/modules/core/action_keyboard_filter_tests.ts b/src/tests/modules/core/action_keyboard_filter_tests.ts index 64a9303c..bd1fdb7d 100644 --- a/src/tests/modules/core/action_keyboard_filter_tests.ts +++ b/src/tests/modules/core/action_keyboard_filter_tests.ts @@ -22,6 +22,7 @@ export default class ActionKeyboardFilterTests extends LogControllerTestCase {