chore(core): cleanup condition

This commit is contained in:
braks
2024-01-25 08:57:52 +01:00
committed by Braks
parent 390073e4d2
commit be9e58092a
+1 -1
View File
@@ -39,7 +39,7 @@ function isKeyMatch(pressedKey: string, keyToMatch: string, pressedKeys: Set<str
function createKeyPredicate(keyFilter: string | string[], pressedKeys: Set<string>): KeyPredicate {
return (event: KeyboardEvent) => {
if (!event.code || !event.key) {
if (!event.code && !event.key) {
return false
}