From 1bc401dadfdc8c12f888fd8d166c6f8e9dafc2a7 Mon Sep 17 00:00:00 2001 From: Stefan Mansson Date: Tue, 17 Jan 2023 18:12:10 +0200 Subject: [PATCH] fix: non-meta keys being fired --- src/validators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validators.ts b/src/validators.ts index a94a9ead..46238516 100644 --- a/src/validators.ts +++ b/src/validators.ts @@ -73,7 +73,7 @@ export const isHotkeyMatchingKeyboardEvent = (e: KeyboardEvent, hotkey: Hotkey, return false } } else { - if (metaKey !== meta && ctrlKey !== meta && keyCode !== 'meta' && keyCode !== 'ctrl') { + if (metaKey !== meta && ctrlKey !== meta) { return false } }