Skip to content

Allow block context menu to be customized #4661

Open

Description

Is your feature request related to a problem? Please describe.
onShowContextMenu allows the context menu of the workspace to be customized. There should be a similar function to customize the context menu of all blocks.

Describe the solution you'd like
Provide a variable called onShowBlockContextMenu, whose type is (block: Blockly.Block, info: pxtc.BlocksInfo, items: Blockly.ContextMenu.MenuItem[]) => void

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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