Repository navigation
Fix: Make ⌘A's select all the blocks again - #7731
Conversation
|
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. |
| this.verticalRect = computeCaretRect( target ); | ||
| } | ||
|
|
||
| if ( ! isNav ) { |
There was a problem hiding this comment.
Worth leaving a comment on the order?
There was a problem hiding this comment.
Well remembered, the comment was added.
42cfffe to
2bb7efe
Compare
ellatrix
left a comment
There was a problem hiding this comment.
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.