Skip to content

Support disabled context menu actions - #31

Merged
agarny merged 12 commits into
opencor:mainfrom
agarny:issue30
Dec 4, 2026
Merged

agarny merged 12 commits into
opencor:mainfrom
agarny:issue30

Conversation

@agarny

@agarny agarny commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #30.

Copilot AI lite review requested due to automatic review settings December 4, 2026 03:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

A moderate active issue remains because keyboard navigation and initial focus still include disabled menu actions instead of skipping them as required.

1 open issue
What changed in this PR

Adds disabled context-menu actions for built-in and custom menus, with documentation and demo support.

Changes:

  • Adds disabled to ContextMenuAction.
  • Prevents disabled actions and submenus from being selected or opened.
  • Updates styling, custom-menu guidance, documentation, demo usage, and package version.
File Description
src/​widgets/​PlotWidget.vue Documents handling of disabled actions in custom context menus.
src/​widgets/​ContextMenuWidget.vue Implements disabled action rendering and interaction behavior.
src/​common/​markerStyleUtils.ts Reformats an existing comment.
README.md Documents the disabled-action API and usage example.
package.json Bumps the package version.
demo/​App.vue Demonstrates disabled custom-menu actions.

Review effort: Lite

Comment thread src/widgets/ContextMenuWidget.vue Resolved
@agarny
agarny merged commit 3a3608f into opencor:main Dec 4, 2026
5 checks passed
@agarny
agarny deleted the issue30 branch December 4, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support disabled context menu actions

2 participants