浏览代码

Merge pull request #2753 from open-webui/dev

fix
Timothy Jaeryang Baek 11 月之前
父节点
当前提交
be08dbf00d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lib/components/chat/MessageInput.svelte

+ 1 - 1
src/lib/components/chat/MessageInput.svelte

@@ -833,7 +833,7 @@
 									]?.at(-1);
 									]?.at(-1);
 
 
 									if (!commandOptionButton) {
 									if (!commandOptionButton) {
-										if (e.key === 'Enter' && !e.shiftKey && prompt !== '' && selected) {
+										if (e.key === 'Enter' && !e.shiftKey && prompt !== '') {
 											submitPrompt(prompt, user);
 											submitPrompt(prompt, user);
 											return;
 											return;
 										}
 										}