[wp-trac] [WordPress Trac] #31810: Installed Themes search: don't blur the search field when pressing Enter
WordPress Trac
noreply at wordpress.org
Mon Mar 30 21:12:27 UTC 2015
#31810: Installed Themes search: don't blur the search field when pressing Enter
-------------------------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.1
Severity: normal | Keywords:
Focuses: ui, accessibility, javascript |
-------------------------------------------+-----------------------------
Pressing enter to execute a search is a common pattern. In WordPress all
the other pages offer this behaviour. Instead, in `themes.php` the search
field loses focus. Looks like this is intentional:
{{{
// Lose input focus when pressing enter
if ( event.which === 13 ) {
this.$el.trigger( 'blur' );
}
}}}
This is confusing especially for keyboard users, not to mention screen
reader users are totally lost. In fact, there's a focus loss and users
will have to start tabbing again from the beginning of the page.
Would simply propose to remove it, don't see any reason for this feature,
unless I'm missing something. See proposed patch.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31810>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list