Make WordPress Core

Opened 3 months ago

Last modified 2 weeks ago

#60369 assigned enhancement

Shortcut for Select Button in Media Library

Reported by: hirschferkel's profile hirschferkel Owned by: antpb's profile antpb
Milestone: 6.6 Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: accessibility Cc:


Hi there,

there should be a shortcut to confirm the selected image in Media Library? It is possible to choose an image with Return Shortcut but there is no combination (and documentation) to just confirm the selection with keypad and insert it to the page …

Dealing with lots of images is currently really cucumbersome, as one has to click the button manually each time again and again.

Attachments (1)

60369.patch (1.8 KB) - added by antpb 7 weeks ago.

Download all attachments as: .zip

Change History (8)

#1 @poena
3 months ago

  • Severity changed from major to normal

This ticket was mentioned in Slack in #core-media by antpb. View the logs.

7 weeks ago

#3 @antpb
7 weeks ago

  • Milestone changed from Awaiting Review to 6.6
  • Owner set to antpb
  • Status changed from new to assigned

Noting this was discussed in the Media Component meeting and we agree this currently is a sore spot. We are thinking cmd/ctrl + enter is the right combo to do this. Adding to 6.6 to see if we can find a quick and solid solution.

#4 follow-up: @hirschferkel
7 weeks ago

Great to read!

7 weeks ago

#5 @hirschferkel
7 weeks ago

@antpb is it possible to apply this patch already in the current WordPress release?

#6 @joedolson
7 weeks ago

Seems to work well; did a brief screen reader test in NVDA/Firefox and NVDA/Chrome to verify it works with a screen reader, and the shortcut fires there.

I did notice that the keyboard shortcut doesn't work in the classic editor - it closes the modal, but doesn't insert the image.

#7 in reply to: ↑ 4 @skobe
2 weeks ago

Replying to hirschferkel:

Great to read!

Great to read indeed! Thanks for pushing this!

Note: See TracTickets for help on using tickets.