Skip to content

fix(macos): respect disabled state for menu items#11

Merged
lijy91 merged 1 commit into
mainfrom
fix/macos-disable-menu-item
Jun 12, 2026
Merged

fix(macos): respect disabled state for menu items#11
lijy91 merged 1 commit into
mainfrom
fix/macos-disable-menu-item

Conversation

@lijy91

@lijy91 lijy91 commented May 30, 2026

Copy link
Copy Markdown
Member

Updates cxx_impl submodule to include the fix for disabled menu items on macOS.

Depends on: libnativeapi/nativeapi#46

- Set autoenablesItems=NO on NSMenu so explicit setEnabled: calls
  are not overridden by AppKit's auto-validation.
- Add isEnabled check in menuItemClicked: as an extra safety net
  to ignore clicks on disabled items.
- Implement menu:validateMenuItem: on NSMenuDelegateImpl to return
  the item's actual isEnabled state.
@lijy91 lijy91 merged commit afb748a into main Jun 12, 2026
8 of 9 checks passed
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.

1 participant