Make WordPress Core

Opened 5 weeks ago

Last modified 7 days ago

#53924 accepted defect (bug)

Press escape to close Attachment details on media upload page

Reported by: vondelphia Owned by: joedolson
Milestone: 5.9 Priority: normal
Severity: normal Version:
Component: Media Keywords: needs-patch
Focuses: accessibility Cc:


How do we make it so I can press escape to close Attachment details modal / popup on the wordpress media page?

Just visit http://wordpress.test/wp-admin/upload.php and upload a file (in grid mode) and when you left click on it, pressing ESCAPE on keyboard does not close. I can click outside the box and it’ll work though.

p.s. can visit forum topic about it https://wordpress.org/support/topic/press-escape-to-close-attachment-details-on-media-upload-page/

Change History (5)

#1 @sabernhardt
5 weeks ago

  • Component changed from General to Media
  • Focuses accessibility added

As noted on the support topic, the Escape key does work the first time you open the details modal dialog, but then pressing the key does not close the dialog when you open it again.

This issue seems familiar, yet I can't find a recent ticket about it (ticket:42180 fixed a different problem with the Escape key).

Last edited 5 weeks ago by sabernhardt (previous) (diff)

This ticket was mentioned in Slack in #accessibility by ryokuhi. View the logs.

7 days ago

#3 @joedolson
7 days ago

  • Keywords needs-patch added
  • Owner set to joedolson
  • Status changed from new to accepted

#4 @joedolson
7 days ago

  • Milestone changed from Awaiting Review to 5.9

#5 @joedolson
7 days ago

This seems like a pretty important issue; the experience should definitely be the same every time you open the dialog! I'm going to try and get this figured out for 5.9.

Note: See TracTickets for help on using tickets.