Page MenuHomePhabricator

Focus Special:Search on input field only when not displaying results
Closed, DuplicatePublic

Description

When viewing [[Special:Search]] the focus is always on the search input field. This is useful when you are going to start a new search. But when you are viewing results for a previous search it is annoying that you can not start pagedowning without having to unfocus the search input field.

I suggest the focus is only when viewing [[Special:Search]] without any search terms (and maybe if the search terms gives no results). Not when viewing search results like [[Special:Search/search+word]].


Version: 1.21.x
Severity: minor

Details

Reference
bz40837

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:05 AM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz40837.
bzimport added a subscriber: Unknown Object (MLST).
Lejonel created this task.Oct 7 2012, 10:04 AM

I think this is actually a bug and not just an enhancement. This worked earlier (don't remember how long ago), but is now broken. (Compare Brions comments to bug 9939).

The fixes linked from bug 9939 are not many lines of changed code. So is this still an easy bug to fix or is the code now much more complicated?