-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update/replace edit button with enter on selection #65760
Update/replace edit button with enter on selection #65760
Conversation
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. |
Size Change: -18 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
Rebased. |
c6afb69
to
2ef6b8c
Compare
2ef6b8c
to
fd9a985
Compare
@richtabor - I like this interaction at the moment. What do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code in this is solid, tentative approval pending on feedback for the change to the enter keypress functionality, but it makes sense to me since the change is isolated to the zoom out mode
Talked with @richtabor and he confirmed the behavior was good to ship for now. |
@getdave @jeryj and @MaggieCabrera, was this intended to be included in WP 6.7? I was chatting with @tellthemachines who noticed the behaviour in the Before video is currently in WP 6.7 Beta 3, so just thought to check in case it was missed for backporting. It's labelled as an enhancement, so wasn't too sure. |
I would say this should be included but I'll defer to @jeryj for final confirmation. Thank you for spotting. |
I'd consider this a fix suitable for 6.7. |
Yup! This should have been backported. Thanks for noticing! |
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 930b9e6 |
Thanks folks! 🙇 |
What?
Removes edit button from zoom out mode toolbar and replaces it with an enter keypress on the selected block while in zoom out mode.
Why?
Fixes #65746. Also, currently pressing Enter on the selected block will add a paragraph block, which does not seem like the intended behavior in this view.How?
Adds condition to existing
useSelectedBlockEventHandlers
Enter keypress to exit zoom out if an enter keypress on selected block in zoom out mode.Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before
Screen.Recording.2024-10-01.at.2.15.36.PM.mov
After
Screen.Recording.2024-10-01.at.2.14.53.PM.mov