Skip to content

Commit

Permalink
Add "S" shortcut for focussing search box
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Aug 15, 2021
1 parent 8afe6ed commit 8275133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx/themes/basic/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1 id="search-documentation">{{ _('Search') }}</h1>
{% endblock %}
{% block searchbox %}
<form action="" method="get">
<input type="text" name="q" aria-labelledby="search-documentation" value="" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="text" name="q" aria-labelledby="search-documentation" value="" accesskey="S" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="{{ _('search') }}" />
<span id="search-progress" style="padding-left: 10px"></span>
</form>
Expand Down
2 changes: 1 addition & 1 deletion sphinx/themes/basic/searchbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<h3 id="searchlabel">{{ _('Quick search') }}</h3>
<div class="searchformwrapper">
<form class="search" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="text" name="q" aria-labelledby="searchlabel" accesskey="S" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="{{ _('Go') }}" />
</form>
</div>
Expand Down

0 comments on commit 8275133

Please sign in to comment.