diff options
author | Daniel Forssten <daniel+github@forssten.se> | 2020-01-19 21:57:53 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-01-19 21:57:53 +0100 |
commit | 7e2af86777bee9cd9483152f9f8be79c98c43fb9 (patch) | |
tree | b8fcec7db779862bab97eab4dfaadd0d8bef4717 /layouts/partials | |
parent | 4b641b0f9a681009e80f847f415f29ea14126420 (diff) |
#134, Focus search field by pressing s or / (#135)
* #134, Focus search field by pressing s or /
* #134, Refactoring away an array loop using indexOf
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/docs/search.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/docs/search.html b/layouts/partials/docs/search.html index bb1fa76..b22bba3 100644 --- a/layouts/partials/docs/search.html +++ b/layouts/partials/docs/search.html @@ -1,6 +1,6 @@ {{ if default true .Site.Params.BookSearch }} <div class="book-search"> - <input type="text" id="book-search-input" placeholder="{{ i18n "Search" }}" aria-label="{{ i18n "Search" }}" maxlength="64" /> + <input type="text" id="book-search-input" placeholder="{{ i18n "Search" }}" aria-label="{{ i18n "Search" }}" maxlength="64" data-hotkeys="s /" /> <div class="book-search-spinner spinner hidden"></div> <ul id="book-search-results"></ul> </div> |