Skip to content

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

@andrewserong

Description

@andrewserong

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions