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
This commit is contained in:
Aditya Telange authored and GitHub committed 2020-12-18 11:45:10 +05:30
1 parent d6b2282582
commit b7f8749cdf
3 files changed
+71 -5

No files matched your search

+1 -1
View File
@@ -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>