Support type '/' to search
This commit is contained in:
parent
6bbd8c519a
commit
1ca145778a
@ -438,6 +438,7 @@ function preLoadCss(cssUrl) {
|
||||
|
||||
case "s":
|
||||
case "S":
|
||||
case "/":
|
||||
ev.preventDefault();
|
||||
searchState.focus();
|
||||
break;
|
||||
@ -1310,7 +1311,7 @@ function preLoadCss(cssUrl) {
|
||||
|
||||
const shortcuts = [
|
||||
["?", "Show this help dialog"],
|
||||
["S", "Focus the search field"],
|
||||
["S / /", "Focus the search field"],
|
||||
["↑", "Move up in search results"],
|
||||
["↓", "Move down in search results"],
|
||||
["← / →", "Switch result tab (when results focused)"],
|
||||
|
@ -135,7 +135,7 @@
|
||||
aria-label="Run search in the documentation" {#+ #}
|
||||
autocomplete="off" {#+ #}
|
||||
spellcheck="false" {#+ #}
|
||||
placeholder="Click or press ‘S’ to search, ‘?’ for more options…" {#+ #}
|
||||
placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" {#+ #}
|
||||
type="search"> {# #}
|
||||
<div id="help-button" tabindex="-1"> {# #}
|
||||
<a href="{{page.root_path|safe}}help.html" title="help">?</a> {# #}
|
||||
|
Loading…
Reference in New Issue
Block a user