Skip to content

Commit 1d4e0f3

Browse files
committed
fix(web): preserve Escape during IME composition
1 parent 73e373b commit 1d4e0f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/components/CommandPalette.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export function CommandPalette({ children }: { children: ReactNode }) {
395395
useEffect(() => {
396396
if (!state.open || state.mode === "command") return;
397397
const onEscapeKeyDown = (event: globalThis.KeyboardEvent) => {
398-
if (event.key !== "Escape") return;
398+
if (event.isComposing || event.key !== "Escape") return;
399399
event.preventDefault();
400400
event.stopPropagation();
401401
toggleMode("command");

0 commit comments

Comments
 (0)