all repos — honk @ d10282571ac529eb908b170c0a1a4286ae37ac73

my fork of honk

hotkey / to focus search
Ted Unangst tedu@tedunangst.com
Sat, 26 Aug 2023 14:56:28 -0400
commit

d10282571ac529eb908b170c0a1a4286ae37ac73

parent

d8bf028326bf481c89b6842b537c06e3ff391a27

2 files changed, 6 insertions(+), 1 deletions(-)

jump to
M views/header.htmlviews/header.html

@@ -52,7 +52,7 @@ </details>

<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>
M views/honkpage.jsviews/honkpage.js

@@ -457,6 +457,11 @@ break;

case "KeyK": scrollprevioushonk(); break; + case "Slash": + document.getElementById("topmenu").open = true + document.getElementById("searchbox").focus() + e.preventDefault() + break } })