-
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
Block editor: "Select all" keyboard shortcut doesn't work anymore in WP 5.8 #33358
Comments
I can confirm that this is a regression. I found this code in WP 5.7 and it's missing in 5.8: useShortcut(
'core/block-editor/select-all',
useCallback(
( event ) => {
event.preventDefault();
multiSelect(
first( rootBlocksClientIds ),
last( rootBlocksClientIds )
);
},
[ rootBlocksClientIds, multiSelect ]
)
); It was moved to a different file ( It was further refactored in 37c5148 to stop using gutenberg/packages/block-editor/src/components/keyboard-shortcuts/index.js Lines 218 to 228 in 64f1de6
@ellatrix, any hints on how to resolve this issue? |
It looks like the content is not focused nor is nothing selected when you press cmd+a? |
Yes, this happens when content isn't focused or selected. However, if I focus on content, then the shortcut works as expected. |
#33446 should fix it. |
Thanks all for working on this issue <3 |
Hi, while testing WP 5.8 RC4 package, I noticed it didn't fix the issue. |
Ok so if you first put the focus on the editor area then it works fine. I think it’s not as good as the previous behavior, but it’s not a blocker anymore for 5.8 in my opinion. |
Description
It looks like there is a regression in the block editor. The
cmd + A
/ctrl + A
keyboard shortcut doesn't work anymore.Screenshots or screen recording (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: