diff --git a/lib/utils/get-key-code-event.ts b/lib/utils/get-key-code-event.ts index 58bdb56..cea21e6 100644 --- a/lib/utils/get-key-code-event.ts +++ b/lib/utils/get-key-code-event.ts @@ -6,6 +6,6 @@ export const getKeyCodeEvent = ( ): KeyCodeEvent | undefined => { return keyCodeEventValues.find( keyCodeEvent => - keyCodeEvent.code === keyCode.code && keyCodeEvent.key === keyCode.key + keyCodeEvent.code === keyCode.code || keyCodeEvent.key === keyCode.key ) }