List View: Block selection (and focus transfer) works inconsistently based on whether a block is selected #66276
Open
Description
Description
List View serves as an important accessibility tool, users can jump into List View using a shortcut, navigate blocks using arrow keys and usually jump back to a block in the canvas by selecting it in List View.
There's one case where this doesn't quite work - if a block is already selected, if you try selecting it again focus doesn't transfer to the canvas.
The semantics in List View don't really tell you this wouldn't work, all the block items are links to the blocks in the canvas.
The best outcome seems to be making sure this works and focus is transferred.
Step-by-step reproduction instructions
- Create a new post and add a few paragraph blocks
- Press Ctrl+Opt+O (on Mac) or Alt+Shift+O (on Windows/Linux) to open List View and note that the select block is focused in List View
- Navigate to another block and select it using Enter or Space, note that it moves focus back to the canvas
- Open List View again (Ctrl+Opt+O or Alt+Shift+O)
- Try selecting the already selected block using Enter or Space
- Observe that focus isn't moved.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes