mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
fix: regenerate shortcut
This commit is contained in:
parent
3b3e12b43a
commit
64194f255c
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@
|
|||
console.log('Shortcut triggered: GENERATE_MESSAGE_PAIR');
|
||||
event.preventDefault();
|
||||
document.getElementById('generate-message-pair-button')?.click();
|
||||
} else if (isShortcutMatch(event, shortcuts[Shortcut.REGENERATE_RESPONSE])) {
|
||||
} else if (isShortcutMatch(event, shortcuts[Shortcut.REGENERATE_RESPONSE]) && document.activeElement?.id === 'chat-input') {
|
||||
console.log('Shortcut triggered: REGENERATE_RESPONSE');
|
||||
event.preventDefault();
|
||||
[...document.getElementsByClassName('regenerate-response-button')]?.at(-1)?.click();
|
||||
|
|
|
|||
Loading…
Reference in a new issue