From 94dbcb25aa21fe37df578471931747f29c29a793 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 28 Apr 2016 17:59:14 +0000 Subject: Set the "autofocus" attribute on the query text box. Patch from Fabian dot Raetz at gmail dot com. --- cgi.c | 4 ++-- 1 file 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 * Copyright (c) 2014, 2015, 2016 Ingo Schwarze @@ -384,7 +384,7 @@ resp_searchform(const struct req *req) "q.query) html_print(req->q.query); - puts("\" size=\"40\">"); + puts("\" size=\"40\" autofocus>"); /* Write submission and reset buttons. */ -- cgit v1.2.3-56-ge451