diff --git a/packages/core/src/composables/useKeyPress.ts b/packages/core/src/composables/useKeyPress.ts index c7a17b65..4731c4ff 100644 --- a/packages/core/src/composables/useKeyPress.ts +++ b/packages/core/src/composables/useKeyPress.ts @@ -39,7 +39,7 @@ function isKeyMatch(pressedKey: string, keyToMatch: string, pressedKeys: Set): KeyPredicate { return (event: KeyboardEvent) => { - if (!event.code || !event.key) { + if (!event.code && !event.key) { return false }