Community Wishlist Survey 2021/Search/Start Wiki with cursor focus in search field

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Random proposal◄ Search  The survey has concluded. Here are the results!

Start Wiki with cursor focus in search field

  • Problem: When starting the Wikipage one has to click the search field before entering the search text
  • Who would benefit: All persons who would like to search the Wikipedias - no disadvantage for users who use the links on the page (where a click is necessary anyway)
  • Proposed solution: Set the FOCUS of the cursor to the SEARCH field upon loading the Wikipedia page(s).
  • Phabricator tickets:
  • Proposer: Toko~dewiki (talk) 17:22, 23 November 2020 (UTC)Reply[reply]


  • This is as simple as adding "autofocus" in the HTML search field <input type="search" ... autofocus> Geert Van Pamel (WMBE) (talk) 23:00, 23 November 2020 (UTC)Reply[reply]
  • This can also be achieved by simple userscript (e.g., this one for when you are on the wiki's main page). --Matěj Suchánek (talk) 09:04, 24 November 2020 (UTC)Reply[reply]
  • This historically has been controversial on en.wp. Most editors (as opposed to readers) find this autofocus behavior annoying and there have been several discussion on this topic in the past there. I do think those discussions haven't been had in a while however. —TheDJ (talkcontribs) 09:30, 24 November 2020 (UTC)Reply[reply]
  • The same problem occurs in Wikidata after you request the creation of a new item; I would expect the cursor to be in the Label field, so I can start typing immediately? Geert Van Pamel (WMBE) (talk) 18:36, 26 November 2020 (UTC)Reply[reply]
  • One problem with this is that the keyboard would no longer work for page navigation using the arrow keys or Page Down (at least on Mac OS). This would be better as a user script. Jonesey95 (talk) 14:31, 29 November 2020 (UTC)Reply[reply]
  • This isn't a good idea as it'd significantly reduce the accessibility rating of every article on-wiki by interefering with keyboard navigation, as all keypresses would go into the search box. Auto-focus works well where the auto-focused action is intended to be the primary or only action on the page and no keyboard navigation is necessary, neither of which are true on articles. --Deskana (talk) 23:33, 30 November 2020 (UTC)Reply[reply]
  • I agree that this wouldn't be a good default for all users. I, for example, have the "Search as you type" feature enabled in my browser which enables me to simply start typing to find something in a web page. This proposal would interfere with that when I'm reading Wikipedia. Silver hr (talk) 02:16, 1 December 2020 (UTC)Reply[reply]
  • This will affect accessible users. Users who frequently use the search box only need to press the Tab key or an enabled widget/userscript.--YFdyh000 (talk) 23:03, 8 December 2020 (UTC)Reply[reply]
  • I am frustrated due to this proposal's complete ignorance of users with accessibility issues. This function exists as gadgets that can be enabled on some wikis (which can be ported to other wikis easily), or you could make use of the accesskey keyboard shortcut, or use the "Jump to search" function on Vector. There are just so many existing ways that won't affect accessibility. H78c67c (talk) 01:25, 10 December 2020 (UTC)Reply[reply]


  • Support Support Imetsia (talk) 18:57, 8 December 2020 (UTC)Reply[reply]
  • Oppose Oppose It would require javascript to interact with one's cursor, a better alternative is to use a keyboard shortcut to quickly activate the search bar. I do not support your idea specifically. MarioSuperstar77 (talk) 20:21, 8 December 2020 (UTC)Reply[reply]
  • Support Support This can be implemented without javascript. I find it very useful. Martinkunev (talk) 23:07, 8 December 2020 (UTC)Reply[reply]
  • Oppose Oppose I wouldn't mind this being an option that's turned off by default, but I do not support this being the default behavior. It would interfere with finding text in pages for those people who have enabled the Search as you type option in their browsers. Silver hr (talk) 00:03, 9 December 2020 (UTC)Reply[reply]
    Comment Comment Good point, this should be a configuration option. Martinkunev (talk) 14:31, 9 December 2020 (UTC)Reply[reply]
  • Support Support --Ciao • Bestoernesto 00:37, 9 December 2020 (UTC)Reply[reply]
  • Support Support BALA. RTalk 01:28, 9 December 2020 (UTC)Reply[reply]
  • Support Support Петър Петров (talk) 17:34, 9 December 2020 (UTC)Reply[reply]
  • Oppose Oppose I don't spend nearly as much time searching Wikipedia as I spend moving from one article to another using links, and there are a lot of them. Tyrekecorrea (talk) 18:34, 9 December 2020 (UTC)Reply[reply]
  • Support Support TheAmerikaner (talk) 20:32, 9 December 2020 (UTC)Reply[reply]
  • Support Support this should be a configuration option JackPotte (talk) 21:38, 9 December 2020 (UTC)Reply[reply]
    @JackPotte: There's a similar gadget on many Wikipedias, for example on the English Wikipedia it's "Focus the cursor in the search bar on loading the Main Page"; this could be modified to extend to all pages if desired. It doesn't appear to be on the French Wikipedia, but it could be easily copied over. --Deskana (talk) 23:30, 9 December 2020 (UTC)Reply[reply]
  • Support Support RohMusik (talk) 23:31, 9 December 2020 (UTC)Reply[reply]
  • Strongest possible Oppose Oppose. No. Please. You can use the accesskey shortcut if you want to get to the search bar fast. In addition, due to the current layout on the Vector skin, the search bar is actually after the main content, and I absolutely do not want to spam my tab key just to focus on the link I want to navigate to. H78c67c (talk) 01:15, 10 December 2020 (UTC)Reply[reply]
  • Support Support as an option per Silver hr; Oppose Oppose as default/mandatory. George Ho (talk) 07:45, 10 December 2020 (UTC)Reply[reply]
  • Support Support Pour en option dans les préférences. C'est mieux que des gadgets perso où seuls quelques wikis les connaissent. Nemo Le Poisson (talk) 09:49, 13 December 2020 (UTC)Reply[reply]
  • Support Support no brainer Bodysurfinyon (talk) 02:31, 14 December 2020 (UTC)Reply[reply]
  • Support Support Philiptdotcom (talk) 13:38, 14 December 2020 (UTC)Reply[reply]
  • Oppose Oppose, except as an option, and one that is off by default, since in many browsers this will interfere with keyboard-based page control, in-page searching, hotkeys, etc. I would also need to be a per-skin basis (one might want this in a mobile view but not desktop). Mostly just opposed, because the likely utility of this will be very low and for a small number of people, so the devs should not waste resources on it.  — SMcCandlish ¢ >ʌⱷ҅ʌ<  08:11, 15 December 2020 (UTC)Reply[reply]
  • Support Support No JavaScript required, so... I'm ok! TechAcquisitor (talk) 19:56, 15 December 2020 (UTC)Reply[reply]
  • Oppose Oppose for the Google homepage, or a login page, this makes sense. However there are lots of other things going on in Wikipedia apart from search, and this would be unexpected/unwelcome for most users who interact frequently using keyboard, eg PgDn would be broken. Jdpipe (talk) 05:48, 17 December 2020 (UTC)Reply[reply]
  • Oppose Oppose: please, please, no. Mainly because it hijacks keyboard page scrolling as mentioned by others. But note also that on a touch-screen system like a tablet or kiosk this would cause the soft keyboard to pop up every time a page is opened. Pelagic (talk) 13:00, 18 December 2020 (UTC)Reply[reply]