File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 5
5
{{ #unless varsb.show_search_form }}
6
6
<div id =" search-input-nav" >
7
7
<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 }} >
9
10
</div >
10
11
{{ /unless }}
11
12
<a href =" /" class =" pure-menu-heading pure-menu-link" ><i class =" fa fa-cubes fa-fw" ></i ><span class =" title" > Docs.rs</span ></a >
You can’t perform that action at this time.
0 commit comments