From 6daba23b2e076b3c8af759b99a9742b9b23aa0a7 Mon Sep 17 00:00:00 2001 From: Ian Henderson Date: Sat, 14 Dec 2024 04:23:26 -0800 Subject: [PATCH] Auto-focus the search field This lets you type right away when you load the page rather than having to click the field or navigate to it using the tab key. --- src/routes/(words)/WordsSearch.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/(words)/WordsSearch.svelte b/src/routes/(words)/WordsSearch.svelte index b88255b..0e65ddc 100644 --- a/src/routes/(words)/WordsSearch.svelte +++ b/src/routes/(words)/WordsSearch.svelte @@ -80,6 +80,7 @@ type="search" name="q" required + autofocus autocapitalize="off" autocomplete="off" bind:value={searchQuery.value}