Skip to content

Commit 59efdb3

Browse files
GuillaumeGomezJoshua Nelson
authored and
Joshua Nelson
committed
Put back tab index on top crate search input
1 parent 631307c commit 59efdb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/navigation_rustdoc.hbs

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
{{#unless varsb.show_search_form}}
66
<div id="search-input-nav">
77
<label for="nav-search"><i class="fa fa-fw fa-search"></i></label>
8-
<input id="nav-search" name="query" type="text" aria-label="Find crate by search query" placeholder="Find crate"{{#if varss.search_query}} value="{{varss.search_query}}"{{/if}}>
8+
{{! The tabindex="-1" is used to prevent it to be the first input focused on the page when using the browser shortcut}}
9+
<input id="nav-search" name="query" tabindex="-1" type="text" aria-label="Find crate by search query" placeholder="Find crate"{{#if varss.search_query}} value="{{varss.search_query}}"{{/if}}>
910
</div>
1011
{{/unless}}
1112
<a href="/" class="pure-menu-heading pure-menu-link"><i class="fa fa-cubes fa-fw"></i><span class="title"> Docs.rs</span></a>

0 commit comments

Comments
 (0)