enh: esc to stop response

This commit is contained in:
Timothy Jaeryang Baek 2024-12-24 15:38:54 -07:00
parent e1a198f0a3
commit 01649fad64

View File

@ -710,6 +710,10 @@
const commandsContainerElement =
document.getElementById('commands-container');
if (e.key === 'Escape') {
stopResponse();
}
// Command/Ctrl + Shift + Enter to submit a message pair
if (isCtrlPressed && e.key === 'Enter' && e.shiftKey) {
e.preventDefault();
@ -893,6 +897,9 @@
const commandsContainerElement =
document.getElementById('commands-container');
if (e.key === 'Escape') {
stopResponse();
}
// Command/Ctrl + Shift + Enter to submit a message pair
if (isCtrlPressed && e.key === 'Enter' && e.shiftKey) {
e.preventDefault();