From 261b69b85b20ab7c83c0a48474f8be104da2f8c7 Mon Sep 17 00:00:00 2001 From: Davide Marcoli <69892203+davidemarcoli@users.noreply.github.com> Date: Sun, 27 Oct 2024 14:25:21 +0100 Subject: [PATCH] feat: improve the keyboard navigation of the search window (#157) * feat: improve the keyboard navigation of the search window * chore: remove console logs --- src/lib/components/header.svelte | 62 ++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 3 deletions(-) diff --git a/src/lib/components/header.svelte b/src/lib/components/header.svelte index 4ea412b..13c1685 100644 --- a/src/lib/components/header.svelte +++ b/src/lib/components/header.svelte @@ -1,5 +1,5 @@ @@ -161,6 +213,7 @@ placeholder="Search..." bind:value={searchQuery} on:input={handleSearch} + on:keydown={handleKeydown} class="flex-grow" /> @@ -168,11 +221,14 @@ {#if searchResults.length > 0}