diff options
author | 2016-04-28 17:59:00 +0000 | |
---|---|---|
committer | 2016-04-28 17:59:00 +0000 | |
commit | c4e6832e64ff43fffe99078922bce19dd94850bd (patch) | |
tree | 13514615da352bf7ebaf6995345141fbd61496d0 /usr.bin/mandoc/cgi.c | |
parent | sync (diff) | |
download | wireguard-openbsd-c4e6832e64ff43fffe99078922bce19dd94850bd.tar.xz wireguard-openbsd-c4e6832e64ff43fffe99078922bce19dd94850bd.zip |
Set the "autofocus" attribute on the query text box.
Patch from Fabian dot Raetz at gmail dot com.
Diffstat (limited to 'usr.bin/mandoc/cgi.c')
-rw-r--r-- | usr.bin/mandoc/cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c index dac483821bf..d4e7bf7eb2d 100644 --- a/usr.bin/mandoc/cgi.c +++ b/usr.bin/mandoc/cgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgi.c,v 1.68 2016/04/15 21:14:03 schwarze Exp $ */ +/* $OpenBSD: cgi.c,v 1.69 2016/04/28 17:59:00 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@usta.de> @@ -382,7 +382,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. */ |