chore(core): cleanup

This commit is contained in:
braks
2023-08-21 17:44:20 +02:00
committed by Braks
parent 2f2f537af7
commit 65c3a05d84
@@ -40,8 +40,6 @@ function isKeyMatch(pressedKey: string, keyToMatch: string, pressedKeys: Set<str
function createKeyPredicate(keyFilter: string | string[], pressedKeys: Set<string>): KeyPredicate {
return (event: KeyboardEvent) => {
console.log(event.type)
// if the keyFilter is an array of multiple keys, we need to check each possible key combination
if (Array.isArray(keyFilter)) {
return keyFilter.some((key) => isKeyMatch(event.key, key, pressedKeys, event.type === 'keyup'))