Page MenuHomePhabricator

Don't focus on search input when displaying search results in Special:Search
Open, Needs TriagePublic


On [[Special:Search]] focus is always set on the search input field. This is useful when making a new search. But when showing results from a previous search you want to be able to scroll down without having to unfocus first.

Exepcted behaviour:

  • visiting [[Special:Search]] without search results:
    • focus is on search input
    • you can start typing your search
  • visiting [[Special:Search/Some search]] displaying search results:
    • focus it is not on input
    • (not having to unfocus) start scrolling using PageDown/PageUp or arrow keys

This was fixed for earlier versions of search (then used by Wikipedia) in T11939 and T78637, but is now broken again.

Event Timeline

Lejonel created this task.Feb 3 2019, 8:28 AM
Restricted Application added a project: Discovery-Search. · View Herald TranscriptFeb 3 2019, 8:28 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Liuxinyu970226 added a subscriber: Liuxinyu970226.

No need to add this tag if there's already a project that focus on specific special pages.

debt moved this task from needs triage to UI tickets on the Discovery-Search board.Feb 7 2019, 6:55 PM

The fix for T78637 was only one line of changed code. Is this much more complicated to fix now?