-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Select all shortcut selects all blocks instead of content in block (Microsoft Edge) #19102
Comments
Not only a problem in Edge, I also reproduced this in Firefox the other day. |
@MarcoZehe I was not able to reproduce this issue in Firefox. Here is a short screencast of Firefox: https://youtu.be/JrSH711-37g |
Sorry, I am blind and cannot see the screen. So I'll take your word for it. I did reproduce it earlier this week, but when I tried just now, it worked fine. Not sure what's up with that or what condition triggers the behavior. |
@grappler Is this something you're still experiencing with the latest version of the plugin? |
@talldan Yes, this bug is still existent. Any reason why you would expect it to be fixed? I did notice that now the first time running "select all" in a paragraph block works fine but after that it always selects all of the blocks. |
@grappler What you describe is how it's intended to work. Press once to select all text, press a second time to select all blocks. As such I'll close the issue. |
@talldan But that is not the case in Edge. Current Behaviour
Expected Behaviour
Here is a screencast: https://youtu.be/djIfj67Qdbk |
Thanks for the extra info @grappler, I can confirm that now that you've clarified how to reproduce the issue. The Issue is now reopened. I've also updated the issue description with those details from your latest comment. |
I was able to reproduce this very confusing bug today in Firefox (latest version). When I tried to make a selection in a block while in edit mode, every block was selected. These are the steps I followed.
I believe this to be a major UX bug but very much an accessibility issue. If a screen reader user is editing a text field, they would expect CTRL+A to select all in the text field, not every block on the page. The whole idea that Gutenberg should flow like a Google Doc just doesn't work due to the concept of blocks themselves. Blocks are meant to have borders, restricted interaction and separation from other blocks. I would not expect the CTRL+A or Shift+arrows to select anything outside of the currently edited block unless you were in select mode. I also tested this with the setting that prevents the cursor from going in to other blocks while in edit mode and still no change. Thanks. |
I was able to duplicate this workflow problem, as well, and agree that it's a significant accessibility problem. Being able to use Ctrl+A to select the whole set of blocks is an ability that is needed, but I would expect it to be the less common scenario. It should not be difficult to select the contents of just one block. |
Notes Investigating #30462 I found the problem here to be that:
Updating the condition to check for: ( target.isContentEditable &&
isEntirelySelected( target ) ) ||
( ! target.isContentEditable && entirelySelected.current ) ... fixes this problem BUT does not work on list blocks or on the quote part of quotes, although it does work if the focus is in the citation. So some blocks (paragraph, image, heading, buttons) work as expected, and some don't. Will continue to check this. |
Sounds good 👍 |
Describe the bug
In Microsoft Edge the select all shortcut
ctrl+A
selects all blocks instead of only selecting all of the content in a block.This is not consistent with the behaviour in Chrome and Firefox. In other browsers only when using the shortcut again are all of the blocks selected.
To reproduce
Expected Behaviour
Here is a screencast: https://youtu.be/djIfj67Qdbk
Environment
The text was updated successfully, but these errors were encountered: