Skip to content
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

Consider a shortcut key for "group" #62097

Closed
alexstandiford opened this issue May 29, 2024 · 4 comments
Closed

Consider a shortcut key for "group" #62097

alexstandiford opened this issue May 29, 2024 · 4 comments
Labels
[Block] Group Affects the Group Block (and row, stack and grid variants) [Package] Keyboard Shortcuts /packages/keyboard-shortcuts [Type] Enhancement A suggestion for improvement.

Comments

@alexstandiford
Copy link

What problem does this address?

As I'm using full site editing more, I find that a very common operation is to select a collection of blocks, and then group them together. Coming from a background of design tools like Figma and Illustrator, I keep trying to press CMD+G to group the blocks after selecting them.

What is your proposed solution?

Add a new shortcut that uses CTRL/CMD+G to group the selected blocks with a group block. maybe even do CTRL/CMD+Shift+G to ungroup, although that's much less common in my experience.

@alexstandiford alexstandiford added the [Type] Enhancement A suggestion for improvement. label May 29, 2024
@t-hamano
Copy link
Contributor

Thanks for the report.

That shortcut was added in #46972. However, for accessibility reasons, it currently only works when two or more blocks are selected.

@t-hamano t-hamano added [Block] Group Affects the Group Block (and row, stack and grid variants) [Package] Keyboard Shortcuts /packages/keyboard-shortcuts labels May 29, 2024
@alexstandiford
Copy link
Author

Got it, thanks for the response, and sorry I missed that!

In that case maybe this is a bug report, because when I hit CTRL+G in Firefox it doesn't do that. Instead it pulls up Firefox's search again functionality.

Here's what I'm doing (in Firefox, naturally)

  1. Open the block editor's "document overview" on the right sidebar
  2. Select a few blocks
  3. Press CTRL+G

Instead of grouping the items, it does Firefox's default action.

@t-hamano
Copy link
Contributor

I tested it in Firefox and it seems to work fine.

Do you have the Gutenberg plugin enabled? This feature was added in Gutenberg version 18.4. You should also be able to see it in the upcoming WP6.6 release.

@alexstandiford
Copy link
Author

Oh. That's it. I didn't realize this was so new that it wasn't in core. Sorry about that! Thanks!

@t-hamano t-hamano closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Group Affects the Group Block (and row, stack and grid variants) [Package] Keyboard Shortcuts /packages/keyboard-shortcuts [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants