Skip to content

Commit 19bc8ee

Browse files
Merge pull request #64 from mkusaka/feat/fix-ime-handle
2 parents b7f35d3 + 7bafbee commit 19bc8ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,11 @@ export default function Chat() {
370370
value={agentInput}
371371
onChange={handleAgentInputChange}
372372
onKeyDown={(e) => {
373-
if (e.key === "Enter" && !e.shiftKey) {
373+
if (
374+
e.key === "Enter" &&
375+
!e.shiftKey &&
376+
!e.nativeEvent.isComposing
377+
) {
374378
e.preventDefault();
375379
handleAgentSubmit(e as unknown as React.FormEvent);
376380
}

0 commit comments

Comments
 (0)