Skip to content

Commit

Permalink
Allow focusing query search field via accesskey
Browse files Browse the repository at this point in the history
  • Loading branch information
xitep committed Dec 28, 2023
1 parent fb30bb0 commit 2b949b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/header/topbar_end.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

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

0 comments on commit 2b949b5

Please sign in to comment.