mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 14:52:23 +00:00
enh: esc to stop response
This commit is contained in:
parent
e1a198f0a3
commit
01649fad64
@ -710,6 +710,10 @@
|
|||||||
const commandsContainerElement =
|
const commandsContainerElement =
|
||||||
document.getElementById('commands-container');
|
document.getElementById('commands-container');
|
||||||
|
|
||||||
|
if (e.key === 'Escape') {
|
||||||
|
stopResponse();
|
||||||
|
}
|
||||||
|
|
||||||
// Command/Ctrl + Shift + Enter to submit a message pair
|
// Command/Ctrl + Shift + Enter to submit a message pair
|
||||||
if (isCtrlPressed && e.key === 'Enter' && e.shiftKey) {
|
if (isCtrlPressed && e.key === 'Enter' && e.shiftKey) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -893,6 +897,9 @@
|
|||||||
const commandsContainerElement =
|
const commandsContainerElement =
|
||||||
document.getElementById('commands-container');
|
document.getElementById('commands-container');
|
||||||
|
|
||||||
|
if (e.key === 'Escape') {
|
||||||
|
stopResponse();
|
||||||
|
}
|
||||||
// Command/Ctrl + Shift + Enter to submit a message pair
|
// Command/Ctrl + Shift + Enter to submit a message pair
|
||||||
if (isCtrlPressed && e.key === 'Enter' && e.shiftKey) {
|
if (isCtrlPressed && e.key === 'Enter' && e.shiftKey) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user