Skip to content

Conversation

@gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #3568

Proposed Changes

This PR builds on #9580 (it will be rebased once that is merged) to allow icons to display contextual menus. This can be done by simply overriding/implementing showContextMenu() on an IIcon to show a contextual menu with the desired options. By default, icons defer to their parent block's contextual menu, which matches the current behavior when one right clicks on an icon.

@gonfunko gonfunko requested a review from a team as a code owner January 22, 2026 21:32
@gonfunko gonfunko requested a review from BenHenning January 22, 2026 21:32
@github-actions github-actions bot added the PR: feature Adds a feature label Jan 22, 2026
Copy link
Collaborator

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this largely looks good but I wouldn't mind taking a pass after the base PR is merged (but will approve so as to not block).

@gonfunko
Copy link
Contributor Author

@BenHenning ready for another look

@gonfunko gonfunko merged commit 4657199 into main Jan 28, 2026
7 checks passed
@gonfunko gonfunko deleted the icon-context-menus branch January 28, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: feature Adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Options for blocks to define menus on icons

3 participants