aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit94dbcb25aa21fe37df578471931747f29c29a793 (patch)
treec6bb727056f8b73003fde42e580bda27c2769c7c
parent4c8d6141db33c90999df9338357775ee331b2f34 (diff)
downloadmandoc-94dbcb25aa21fe37df578471931747f29c29a793.tar.gz
mandoc-94dbcb25aa21fe37df578471931747f29c29a793.tar.zst
mandoc-94dbcb25aa21fe37df578471931747f29c29a793.zip
Set the "autofocus" attribute on the query text box.
Patch from Fabian dot Raetz at gmail dot com.
-rw-r--r--cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi.c b/cgi.c
index 41e4984d..0cd320c7 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.129 2016/04/15 21:14:51 schwarze Exp $ */
+/* $Id: cgi.c,v 1.130 2016/04/28 17:59:14 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@usta.de>
@@ -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. */