Skip to content

Commit

Permalink
fix: keyboard shortcut conflict
Browse files Browse the repository at this point in the history
avoid cmd/ctrl-\ from opening lang menu; reserved for color mode change
  • Loading branch information
wackerow committed Aug 15, 2024
1 parent 6eed7bc commit e830a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LanguagePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const LanguagePicker = ({
* @param {string} event - The keydown event.
*/
useEventListener("keydown", (e) => {
if (e.key !== "\\") return
if (e.key !== "\\" || e.metaKey || e.ctrlKey) return
e.preventDefault()
onOpen()
})
Expand Down

0 comments on commit e830a20

Please sign in to comment.