[wp-trac] [WordPress Trac] #29304: Arrow keyboard navigation doesn't work when an item is selected in the media modal
WordPress Trac
noreply at wordpress.org
Sat Aug 23 21:24:48 UTC 2014
#29304: Arrow keyboard navigation doesn't work when an item is selected in the
media modal
--------------------------+----------------------------------------
Reporter: helen | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: accessibility, javascript
--------------------------+----------------------------------------
Comment (by gcorne):
In [attachment:29304-01.patch 29304-01.patch], I believe that I have fixed
the issue. The main issue is that there are multiple instances of the
{{{media.view.Attachments}}} view in the modal. It is used in both the
{{{AttachmentsBrowser}}} and via inheritance in
{{{Attachments.Selection}}} which meant that the keyboard event was firing
twice and the last one was in the context of the selection instance which
wasn't the desired behavior. I also added a check to use the current
selection if there were no focused list items.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29304#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list