diff --git a/src/components/chat-item/chat-prompt-input.ts b/src/components/chat-item/chat-prompt-input.ts index b90692ead..79030236c 100644 --- a/src/components/chat-item/chat-prompt-input.ts +++ b/src/components/chat-item/chat-prompt-input.ts @@ -417,8 +417,7 @@ export class ChatPromptInput { this.clearTextArea(true); } } else if (e.key === KeyMap.ENTER && - ((!e.isComposing && !e.shiftKey && !e.ctrlKey) || - (e.isComposing && (e.shiftKey)))) { + !e.isComposing && !e.shiftKey && !e.ctrlKey) { cancelEvent(e); this.sendPrompt(); } else if (