diff --git a/apps/desktop/src/app/chat/composer/index.tsx b/apps/desktop/src/app/chat/composer/index.tsx index cc2f33b13..d19c0a253 100644 --- a/apps/desktop/src/app/chat/composer/index.tsx +++ b/apps/desktop/src/app/chat/composer/index.tsx @@ -575,6 +575,13 @@ export function ChatBar({ } const handleEditorKeyDown = (event: KeyboardEvent) => { + // IME composition: Enter confirms composed text, not a message submission. + // Without this guard, pressing Enter to finalise a Korean/Japanese/Chinese + // IME preedit fires submitDraft() and splits the message mid-word. + if (event.nativeEvent.isComposing) { + return + } + if ((event.metaKey || event.ctrlKey) && !event.altKey && !event.shiftKey && event.key.toLowerCase() === 'k') { event.preventDefault() @@ -1090,8 +1097,8 @@ export function ChatBar({
, which carries the binding but skips autosize. */} - +