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,13 +828,19 @@ ...@@ -828,13 +828,19 @@
e.preventDefault(); e.preventDefault();
} }
if (e.key === 'Enter' && !e.shiftKey && prompt !== '') { const commandOptionButton = [
submitPrompt(prompt, user); ...document.getElementsByClassName('selected-command-option-button')
return; ]?.at(-1);
}
if (e.key === 'Enter' && e.shiftKey && prompt !== '') { if (!commandOptionButton) {
return; if (e.key === 'Enter' && !e.shiftKey && prompt !== '' && selected) {
submitPrompt(prompt, user);
return;
}
if (e.key === 'Enter' && e.shiftKey && prompt !== '') {
return;
}
} }
} }
......
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