diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-04-28 17:59:01 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-04-28 17:59:01 +0000 |
commit | b9f02280d813c23d9936bfad950ceee7e59deae4 (patch) | |
tree | 8f658d762ff319ff4acd8240b313d0ec8511ad92 | |
parent | 69e4a876755703a35799d6e06ff783430d191e79 (diff) |
Set the "autofocus" attribute on the query text box.
Patch from Fabian dot Raetz at gmail dot com.
-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. */ |