-
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
Fix: Make ⌘A's select all the blocks again #7731
Fix: Make ⌘A's select all the blocks again #7731
Conversation
@@ -190,7 +190,7 @@ class WritingFlow extends Component { | |||
|
|||
// Aobrt if navigation has already been handled (e.g. TinyMCE inline |
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.
There's a typo here "Aobrt"
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.
Re-regresses #7644 . _navigationHandled
isn't a thing. It's basically the same as if the condition isn't there at all.
Also related: #7445 |
f51f5b8
to
42cfffe
Compare
This PR was updated it now reorders the check for ⌘A event to be before the check for event.nativeEvent.defaultPrevented. It seems TinyMCE applies a prevent default in the event. |
Future tasks:
On glance, this looks good. Will take a closer look soon. Travis appears to be having a bad day. |
} else if ( ! this.verticalRect ) { | ||
this.verticalRect = computeCaretRect( target ); | ||
} | ||
|
||
if ( ! isNav ) { |
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.
Worth leaving a comment on the order?
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.
Well remembered, the comment was added.
42cfffe
to
2bb7efe
Compare
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.
Looks fine to me. Added an e2e test to ensure we don't break it in the future. Arrow nav still works as expected.
The PR was updated to use another approach.
Thanks for the added end-to-end test! |
Just noting that, at least as of today:
|
I see the above is sort of tracked in #8180, so disregard. :) |
Description
Fixes: #7711
Regressed in: #7644
Moves the logic to handle meta+a to be before the check for event.nativeEvent.defaultPrevented. The event was default prevented by TinyMCE.
How has this been tested?
Some smoke testing.
Added multiple paragraphs with text and checked that pressing ⌘A's multiple selected all the blocks.