Skip to content

Commit

Permalink
modify getKeyCodeEvent to match better. Fixes 336
Browse files Browse the repository at this point in the history
  • Loading branch information
wesbos committed Feb 1, 2023
1 parent 3acbfbe commit 003d7b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/get-key-code-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}

0 comments on commit 003d7b1

Please sign in to comment.