forked from open-webui/open-webui
feat: toggle settings shortcut added
This commit is contained in:
parent
b916f1b07d
commit
7ffc1902a9
3 changed files with 28 additions and 3 deletions
|
@ -160,6 +160,13 @@
|
|||
document.getElementById('delete-chat-button')?.click();
|
||||
}
|
||||
|
||||
// Check if Ctrl + S is pressed
|
||||
if (isCtrlPressed && event.key.toLowerCase() === 's') {
|
||||
event.preventDefault();
|
||||
console.log('openSettings');
|
||||
document.getElementById('open-settings-button')?.click();
|
||||
}
|
||||
|
||||
// Check if Ctrl + / is pressed
|
||||
if (isCtrlPressed && event.key === '/') {
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue