From bf40695eb852caa699642b565a054a5292077057 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 30 Dec 2023 00:24:57 -0800 Subject: [PATCH] fix: toggle settings shortcut fix --- src/lib/components/chat/ShortcutsModal.svelte | 2 +- src/routes/(app)/+layout.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/ShortcutsModal.svelte b/src/lib/components/chat/ShortcutsModal.svelte index 2e0b66f7..2b643b2a 100644 --- a/src/lib/components/chat/ShortcutsModal.svelte +++ b/src/lib/components/chat/ShortcutsModal.svelte @@ -135,7 +135,7 @@
- S + .
diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index e6d296f2..222a7d84 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -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();