Skip to content

Commit 65421ed

Browse files
GuillaumeGomezJoshua Nelson
authored and
Joshua Nelson
committed
Put back tab index on top crate search input
1 parent 31c864e commit 65421ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/header/topbar_begin.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
</label>
1919

2020
{# If there is a search query, put it in the search bar #}
21-
<input id="nav-search" name="query" type="text" aria-label="Find crate by search query"
21+
{# The tabindex="-1" is used to prevent it to be the first input focused on the page when using the browser shortcut #}
22+
<input id="nav-search" name="query" type="text" aria-label="Find crate by search query" tabindex="-1"
2223
placeholder="Find crate" {%- if search_query %} value="{{ search_query }}" {%- endif %}>
2324
</div>
2425

0 commit comments

Comments
 (0)