Autofocus search

Fixes #25
This commit is contained in:
Zed 2019-08-13 20:21:35 +02:00
parent 8141222c93
commit c42b2893ff
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ proc renderSearch*(): VNode =
buildHtml(tdiv(class="panel")):
tdiv(class="search-panel"):
form(`method`="post", action="search"):
input(`type`="text", name="query", placeholder="Enter usernames...")
input(`type`="text", name="query", autofocus="", placeholder="Enter usernames...")
button(`type`="submit"): text "🔎"
proc renderError*(error: string): VNode =