Yes please, this has been annoying me for ages.
I'm not setup to test this, but if it works: OK florian

On Thu, Jan 09, 2020 at 09:18:25PM -0600, Tim Baumgard wrote:
> This turns off HTML5 autocomplete for the query input field for
> man.cgi(8). This essentially makes smartphones and tablets behave the
> same as PCs since they otherwise would try to annoyingly capitalize the
> first character and change things like "mandoc" to "man doctor."
> 
> Tim
> 
> 
> Index: cgi.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/mandoc/cgi.c,v
> retrieving revision 1.107
> diff -u -p -r1.107 cgi.c
> --- cgi.c    10 Nov 2019 22:18:01 -0000    1.107
> +++ cgi.c    10 Jan 2020 02:55:23 -0000
> @@ -417,7 +417,7 @@ resp_searchform(const struct req *req, e
>      printf("    <input type=\"search\" name=\"query\" value=\"");
>      if (req->q.query != NULL)
>          html_print(req->q.query);
> -    printf( "\" size=\"40\"");
> +    printf( "\" autocomplete=\"off\" size=\"40\"");
>      if (focus == FOCUS_QUERY)
>          printf(" autofocus");
>      puts(">");
> 

-- 
I'm not entirely sure you are real.

Reply via email to