summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2016-04-28 17:59:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2016-04-28 17:59:14 +0000
commit7461763ab84e11bc9196e323a3081fa4dcf6b21e (patch)
treeff2a46ab0982d91ae03691a93c3835d1d9c6e63a /cgi.c
parent08a0ddf44ad09e1a70ca176599ea4fa091e9bd6f (diff)
downloadmandoc-7461763ab84e11bc9196e323a3081fa4dcf6b21e.tar.gz
Set the "autofocus" attribute on the query text box.
Patch from Fabian dot Raetz at gmail dot com.
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index ef76fb52..22dbe0c9 100644
--- a/cgi.c
+++ b/cgi.c
@@ -384,7 +384,7 @@ resp_searchform(const struct req *req)
"<input type=\"text\" name=\"query\" value=\"");
if (NULL != req->q.query)
html_print(req->q.query);
- puts("\" size=\"40\">");
+ puts("\" size=\"40\" autofocus>");
/* Write submission and reset buttons. */