Skip to content

Commit 912e0af

Browse files
authored
fix(agent): ignore Enter event when event.isComposing is true (#7474)
1 parent bfe35a8 commit 912e0af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/lib/components/flows/conversations/FlowChatManager.svelte.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ export class FlowChatManager {
595595
}
596596

597597
handleKeyDown = (event: KeyboardEvent) => {
598-
if (event.key === 'Enter' && !event.shiftKey) {
598+
if (event.key === 'Enter' && !event.shiftKey && !event.isComposing) {
599599
event.preventDefault()
600600
this.sendMessage()
601601
}

0 commit comments

Comments
 (0)