Last modified: 2008-01-03 01:13:17 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 9939 - Focus cursor in search box when accessing search page
Focus cursor in search box when accessing search page
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-05-17 18:15 UTC by Frank Skare
Modified: 2008-01-03 01:13 UTC (History)
5 users (show)

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


Description Frank Skare 2007-05-17 18:15:10 UTC
Main page don't set focus to be able to scoll using up/down. Scrolling isn't needed on the search page so the input box can be focused.
Comment 1 Brion Vibber 2007-05-17 18:18:07 UTC
Scrolling certainly is needed on the search page when viewing a list of results.

Might be handy when no search has been made, though.
Comment 2 Frank Skare 2007-05-17 18:32:48 UTC
Most search related sites set focus even for scrollable pages, I thing this is sane. What about the blank search page?
Comment 3 Frank Skare 2007-05-17 18:48:52 UTC
Most search related sites set focus even for scrollable pages, if somebody really wants to scroll with up/down pressing the tab key to move the focus away from the input box should not be a issue.
Comment 4 Brion Vibber 2007-05-17 20:39:08 UTC
Neither Google nor Yahoo do, so I'm curious what majority you're thinking of. :)
Comment 5 ilglists 2007-07-08 19:29:07 UTC
Having the cursor be active in the search form would save me dozens, sometimes hundreds, of keystrokes (tabs) a day. Merriam-Webster ( does this automatically after the first search.
Comment 6 Johan Bergman 2008-01-01 17:13:02 UTC
Brion Vibber, according to my experience both Google and Yahoo are focusing the cursor. I can go to their main pages and start typing immediately, without having to focus manually on the search box. And I think it is great and hope that e.g. Wikipedia will also be able to have this!
Comment 7 Brion Vibber 2008-01-02 17:55:29 UTC
I can confirm that both Yahoo and Google behave as I would expect, that is:

1) Their search entry portal, which is search-focused and has a search box at the top as primary content, sets focus to the search box.


2) Their search result pages do not set focus.
Comment 8 Brion Vibber 2008-01-03 01:03:32 UTC
Done on trunk in r29201.

Needs to be done for Lucene extension since we haven't yet merged the client fully for Wikimedia usage.
Comment 9 Brion Vibber 2008-01-03 01:13:17 UTC
Done in LuceneSearch in r29202.

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