Unverified Commit 61287a16 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #2752 from open-webui/dev

fix: #2751
parents 4b459e37 16e72b2f
......@@ -828,7 +828,12 @@
e.preventDefault();
}
if (e.key === 'Enter' && !e.shiftKey && prompt !== '') {
const commandOptionButton = [
...document.getElementsByClassName('selected-command-option-button')
]?.at(-1);
if (!commandOptionButton) {
if (e.key === 'Enter' && !e.shiftKey && prompt !== '' && selected) {
submitPrompt(prompt, user);
return;
}
......@@ -837,6 +842,7 @@
return;
}
}
}
const isCtrlPressed = e.ctrlKey || e.metaKey; // metaKey is for Cmd key on Mac
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment