mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 08:07:55 +00:00
Merge pull request #328 from ollama-webui/shortcut-fix
fix: toggle settings shortcut fix
This commit is contained in:
commit
13881beedd
@ -135,7 +135,7 @@
|
||||
<div
|
||||
class=" h-fit py-1 px-2 flex items-center justify-center rounded border border-black/10 capitalize text-gray-600 dark:border-white/10 dark:text-gray-300"
|
||||
>
|
||||
S
|
||||
.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -160,8 +160,8 @@
|
||||
document.getElementById('delete-chat-button')?.click();
|
||||
}
|
||||
|
||||
// Check if Ctrl + S is pressed
|
||||
if (isCtrlPressed && event.key.toLowerCase() === 's') {
|
||||
// Check if Ctrl + . is pressed
|
||||
if (isCtrlPressed && event.key === '.') {
|
||||
event.preventDefault();
|
||||
console.log('openSettings');
|
||||
document.getElementById('open-settings-button')?.click();
|
||||
|
Loading…
Reference in New Issue
Block a user