mirror of https://github.com/open-webui/open-webui
fix: #2751
This commit is contained in:
parent
fddf693dad
commit
16e72b2f67
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue