Skip to content

Commit b84533c

Browse files
committed
fix(ts): resolve IME key type comparison error
1 parent 371a48b commit b84533c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/PanelGrid/PanelGrid.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,9 @@ export function PanelGrid({
332332
requestAnimationFrame(() => { composingRef.current = false; });
333333
}}
334334
onKeyDown={(e) => {
335-
// Also check e.key !== 'Process' for additional IME detection
336-
if (e.key === 'Enter' && !e.shiftKey && !composingRef.current && e.key !== 'Process') {
335+
// 'Process' key indicates IME is handling the input
336+
if (e.key === 'Process' || composingRef.current) return;
337+
if (e.key === 'Enter' && !e.shiftKey) {
337338
e.preventDefault();
338339
handleCreate(inputCommand || undefined);
339340
}

0 commit comments

Comments
 (0)