Author: awuest
Description:
It is extremely cumbersome to first click into the search box before being able
to enter text on the main page. Of course there's always Alt+f, but these are
two buttons too many, at least on the main page. If the search box should have
focus on non-main pages can be discussed, since it may be nice to give focus to
the first link of the content, for accessibility reasons.
I would propose to to add
tabindex="1"
to
<input id="searchInput" name="search" type="text" accesskey="f" value="" />
which will give focus to the search box after one tab hit (don't use '0' for the
tabindex, since other elements would get focus first then). For those who have
ECMAScript enabled, add an attribute
onLoad="setFocus()"
to the <body> element, and specify a function
function setFocus() { document.search.focus(); }
which gives focus to the search box on page-load.
Version: 1.4.x
Severity: normal
OS: Linux
Platform: PC