WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.52k stars 4.21k forks source link

Create keyboard shortcuts for Spacer Presets #65489

Open MadtownLems opened 1 month ago

MadtownLems commented 1 month ago

What problem does this address?

Currently, it's tedious to insert a Spacer Block with the keyboard (/spacer) and then rely on the mouse to choose a preset.

What is your proposed solution?

It would be cool to introduce keyboard shortcuts for Spacer blocks that immediately insert the spacer block to the preset value, similar to how one can use /h2 or /h3 to insert a heading set at the correct level.

For example, /spacer2 could insert a Spacer with the preset value of 2 already selected.

Mayank-Tripathi32 commented 2 days ago

I agree that adding preset options via keyboard shortcuts would improve accessibility. I'll reach out in the slack channels to gather additional input before moving forward with a potential solution.

Mayank-Tripathi32 commented 1 day ago

cc: @WordPress/gutenberg-components @WordPress/accessibility

Any input on this would be greatly appreciated. Thanks