Skip to content

Commit

Permalink
fix: non-meta keys being fired
Browse files Browse the repository at this point in the history
  • Loading branch information
animify committed Jan 17, 2023
1 parent 506bf00 commit 1bc401d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const isHotkeyMatchingKeyboardEvent = (e: KeyboardEvent, hotkey: Hotkey,
return false
}
} else {
if (metaKey !== meta && ctrlKey !== meta && keyCode !== 'meta' && keyCode !== 'ctrl') {
if (metaKey !== meta && ctrlKey !== meta) {
return false
}
}
Expand Down

0 comments on commit 1bc401d

Please sign in to comment.