Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
bf40695e
Commit
bf40695e
authored
Dec 30, 2023
by
Timothy J. Baek
Browse files
fix: toggle settings shortcut fix
parent
0890b53e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/lib/components/chat/ShortcutsModal.svelte
src/lib/components/chat/ShortcutsModal.svelte
+1
-1
src/routes/(app)/+layout.svelte
src/routes/(app)/+layout.svelte
+2
-2
No files found.
src/lib/components/chat/ShortcutsModal.svelte
View file @
bf40695e
...
@@ -135,7 +135,7 @@
...
@@ -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>
...
...
src/routes/(app)/+layout.svelte
View file @
bf40695e
...
@@ -160,8 +160,8 @@
...
@@ -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();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment