diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 8afe2fd84..05ce93283 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -37,7 +37,7 @@ let ollamaVersion = ''; let loaded = false; - + let showShortcutsButton:HTMLButtonElement let DB = null; let localDBChats = []; @@ -184,7 +184,7 @@ if (isCtrlPressed && event.key === '/') { event.preventDefault(); console.log('showShortcuts'); - document.getElementById('show-shortcuts-button')?.click(); + showShortcutsButton.click(); } }); @@ -203,6 +203,7 @@