Last modified: 2010-05-15 15:33:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4010, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2010 - give search box (id="searchInput") focus by default on Main_Page
give search box (id="searchInput") focus by default on Main_Page
Status: RESOLVED DUPLICATE of bug 1864
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.4.x
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-28 14:14 UTC by Andreas Wuest
Modified: 2010-05-15 15:33 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andreas Wuest 2005-04-28 14:14:35 UTC
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.
Comment 1 Ævar Arnfjörð Bjarmason 2005-04-28 14:19:54 UTC
Aside from the tabindex and the Main Page suggestion this is a dupe of bug 1864,
please add your comments to that bug.

*** This bug has been marked as a duplicate of 1864 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links