[wp-trac] [WordPress Trac] #36900: Media grid AttachmentsBrowser arrows navigation and restoreFocus() no longer work
WordPress Trac
noreply at wordpress.org
Sat May 21 13:36:19 UTC 2016
#36900: Media grid AttachmentsBrowser arrows navigation and restoreFocus() no
longer work
--------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.5
Severity: normal | Keywords:
Focuses: javascript |
--------------------------+-----------------------------
In WordPress 4.4, the media grid allows to navigate attachments in all
directions using the Up/Down/Left/Right arrow keys. Also, when in the
details sidebar and tabbing backwards, focus is restored to the currently
selected attachment.
In WordPress 4.5 these two functionalities no longer work. Sorry can't
help more than this, just tracked down to:
in `AttachmentsBrowser.createAttachments()` which runs on
`AttachmentsBrowser.initialize()`
these two callbacks no longer work:
{{{
this.attachments.listenTo( this.controller, 'attachment:keydown:arrow',
this.attachments.arrowEvent );
this.attachments.listenTo( this.controller, 'attachment:details:shift-
tab', this.attachments.restoreFocus );
}}}
probably related to the changes in Backbone.js 1.2.0, see [36546]
/cc @wonderboymusic @adamsilverstein
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36900>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list