Media Editor Modal: Use shift modifier to adjust keyboard pan speed#77878
Conversation
|
Size Change: +1 B (0%) Total Size: 7.87 MB 📦 View Changed
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in c0b4235. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/25206152789
|
ramonjd
left a comment
There was a problem hiding this comment.
nice one
makes it more consistent with keyboard crop resize 👍🏻
|
Thanks for merging! 🙇 |
What?
Part of:
Just like we do for keyboard handling of the resize handles, this PR adds in a shift modifier to adjust the speed of keyboard panning for the cropper.
Why?
Sometimes you want a little more precision when moving the crop area by keyboard, and sometimes you want to go a little faster. Also, it's more consistent if it works the same for panning as for the crop drag handles.
How?
getKeyboardStepfunction to handle the swiftTesting Instructions
Enable the Media Upload Modal experiment
Add an image to a post or page and click the crop icon in the block toolbar to invoke the modal.
Reduce the size of the crop area, and either tab to the cropper or drag it to ensure it's focused. Then, use the cursor keys on the keyboard to interact with it. Then, hold the Shift key while doing the same. Does it work as expected?
Screenshots or screencast
2026-05-01.17.18.21.mp4
Use of AI Tools
Codex