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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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)
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  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: ---


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



  <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


to the <body> element, and specify a function

  function setFocus() {;

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.