diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-04-28 17:59:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-04-28 17:59:14 +0000 |
commit | 94dbcb25aa21fe37df578471931747f29c29a793 (patch) | |
tree | c6bb727056f8b73003fde42e580bda27c2769c7c | |
parent | 4c8d6141db33c90999df9338357775ee331b2f34 (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. */ |