Merge pull request #328 from ollama-webui/shortcut-fix

fix: toggle settings shortcut fix
This commit is contained in:
Timothy Jaeryang Baek 2023-12-30 03:26:35 -05:00 committed by GitHub
commit 13881beedd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -135,7 +135,7 @@
<div <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" 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> </div>
</div> </div>

View file

@ -160,8 +160,8 @@
document.getElementById('delete-chat-button')?.click(); document.getElementById('delete-chat-button')?.click();
} }
// Check if Ctrl + S is pressed // Check if Ctrl + . is pressed
if (isCtrlPressed && event.key.toLowerCase() === 's') { if (isCtrlPressed && event.key === '.') {
event.preventDefault(); event.preventDefault();
console.log('openSettings'); console.log('openSettings');
document.getElementById('open-settings-button')?.click(); document.getElementById('open-settings-button')?.click();