hotkey / to focus search
This commit is contained in:
parent
2c5a051376
commit
0ba146c00c
|
@ -52,7 +52,7 @@
|
|||
<li><a href="/help/honk.1.html">help</a>
|
||||
<li>
|
||||
<form action="/q" method="GET">
|
||||
<input type="text" name="q" autocomplete=off size=10 placeholder="search">
|
||||
<input type="text" name="q" autocomplete=off size=10 id="searchbox" placeholder="search">
|
||||
</form>
|
||||
</ul>
|
||||
</details>
|
||||
|
|
|
@ -457,6 +457,11 @@ document.addEventListener("keydown", function(e) {
|
|||
case "KeyK":
|
||||
scrollprevioushonk();
|
||||
break;
|
||||
case "Slash":
|
||||
document.getElementById("topmenu").open = true
|
||||
document.getElementById("searchbox").focus()
|
||||
e.preventDefault()
|
||||
break
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue