diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-12-18 11:45:10 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-18 11:45:10 +0530 |
| commit | b7f8749cdfbd01d19a71d560f5c8b4322f11542e (patch) | |
| tree | 8ebc0d7a610eaa6736a43fd527c50dc9a75046ca /layouts/_default | |
| parent | d6b22825827ed5d2153008b8f123e11374be3363 (diff) | |
Search: Keyboard Bindings for easier navigation (#138)
* set up basic actions on keypress
* add actions to perform conditionally
* add simple highlight animation
* prevent mouseclick to change active element
* clear input box on Escape
* click on Arrow Right
* clear results and focus search-input on esc
* refactor
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/search.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/search.html b/layouts/_default/search.html index 44b72c5..2105c29 100644 --- a/layouts/_default/search.html +++ b/layouts/_default/search.html @@ -30,7 +30,7 @@ {{- end}} </header> -<div class="searchbox"> +<div id="searchbox"> <input id="searchInput" autofocus placeholder="{{.Title}} ↵" aria-label="search"> <ul id="searchResults" aria-label="search results"></ul> </div> |
