From e830a2005bc0bb89171223442eaae99d66668bc2 Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:25:33 -0700 Subject: [PATCH] fix: keyboard shortcut conflict avoid cmd/ctrl-\ from opening lang menu; reserved for color mode change --- src/components/LanguagePicker/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LanguagePicker/index.tsx b/src/components/LanguagePicker/index.tsx index 0b38e913c12..0bcb653a176 100644 --- a/src/components/LanguagePicker/index.tsx +++ b/src/components/LanguagePicker/index.tsx @@ -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() })