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

Explore options for additional right-click behaviour within the editor canvas and other areas #57091

Open
andrewserong opened this issue Dec 15, 2023 · 1 comment
Labels
[Feature] Block settings menu The block settings screen Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@andrewserong
Copy link
Contributor

In #50273 the List View added right click behaviour to open up the block settings menu when right-clicking on a list view item. Which other areas in Gutenberg could benefit from a Gutenberg-specific right-click contextual menu? This issue is to gather ideas, potential designs, and discuss concerns or benefits of the feature.

Some ideas:

  • In the editor canvas, open up the block settings menu
  • In the editor canvas, use right click to allow inserting a block or pattern anywhere within the canvas, without having to click on the block inserter / appender button
  • In data views (e.g. pages within the site editor), open up the actions menu to allow quickly editing or deleting pages

Benefits

  • Easy access to block-specific controls and actions
  • More easily perform quick actions like duplicating and deleting blocks
  • Potentially more easily insert a block at any arbitrary location

Considerations

The browser's contextual menu includes many controls that users rely on when editing content. If considering replacing in the editor canvas with a custom contextual menu, some things to watch out for:

  • Needs cut/copy/paste controls for partial selection
  • Needs select all button
  • Open link in new window behaviour
  • Some folks might depend on the speech or services options under the browser's contextual menu
@fabiankaegy
Copy link
Member

A pattern that I have really come to appreciate from places like YouTube is that when a context menu takes over the browser default behavior, a second right click within a short timeframe then allows the event through and opens the browser native menu.

This elevates the need to duplicate all the things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block settings menu The block settings screen Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants