diff --git a/src/lib/components/ui/navbar/commands/Commands.svelte b/src/lib/components/ui/navbar/commands/Commands.svelte index 5fd3b498..e6bc49e7 100644 --- a/src/lib/components/ui/navbar/commands/Commands.svelte +++ b/src/lib/components/ui/navbar/commands/Commands.svelte @@ -127,7 +127,10 @@ } function handleKeydown(event: KeyboardEvent) { - if ((event.ctrlKey && event.key === 'k') || event.key == '/') { + if ( + (event.ctrlKey && event.key === 'k') || + (event.key == '/' && document.activeElement == document.body) + ) { event.preventDefault() togglePalette() }