fix(agent): ignore Enter event when event.isComposing is true (#7474)

This commit is contained in:
Bryan
2026-01-02 16:57:43 +08:00
committed by GitHub
parent e0ec2ea209
commit 26964e7f56
@@ -595,7 +595,7 @@ export class FlowChatManager {
}
handleKeyDown = (event: KeyboardEvent) => {
if (event.key === 'Enter' && !event.shiftKey) {
if (event.key === 'Enter' && !event.shiftKey && !event.isComposing) {
event.preventDefault()
this.sendMessage()
}