Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#55267 closed feature request (duplicate)

suggest: autofocus search field

Reported by: mattscott's profile matt.scott Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9.1
Component: Administration Keywords:
Focuses: ui Cc:


I suggest adding autofocus to wp-admin/includes/plugin-install.php on line 338 (in latest version-5.9.1 - within the input tag, with id 'search-plugins'). This is an attribute that all browsers - that I know - support. This will allow the user to (from Dashboard or any admin page) to click the add new plugin link and then type their search term without clicking the input box.
Autofocus may also be useful in other forms...

Change History (1)

#1 @sabernhardt
2 years ago

  • Component changed from General to Administration
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi and welcome to Trac!

The autofocus behavior was removed from the Plugin Installation screen in r29218 (see #39528).

This page has at least two workflows other than searching to consider:

  • uploading a plugin and
  • browsing plugin options under the available tab-style links

And with the search autofocus, switching from the Featured collection page to my Recommended set would re-focus on the search box after I identify my intention to browse the recommended plugins.

Note: See TracTickets for help on using tickets.