Skip to content

Commit

Permalink
Auto-focus the search field (#46)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ianh authored Dec 17, 2024
1 parent 1ef4733 commit 7d2c966
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/(words)/WordsSearch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
type="search"
name="q"
required
autofocus
autocapitalize="off"
autocomplete="off"
bind:value={searchQuery.value}
Expand Down

0 comments on commit 7d2c966

Please sign in to comment.