Skip to content

[macOS 27] Use native menu presentation - #112

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Oct 19, 2026
Merged

cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Native menu tracking, repeated clicks, and deferred highlight cleanup need human validation on macOS 27.

No open issues 🎉

What changed in this PR

Uses native status-item menu presentation on macOS 27 to restore highlighting, while preserving existing presentation on older systems.

Changes:

  • Adds native menu presentation with deferred menu detachment.
  • Adjusts click handling and highlighting to let AppKit manage native menu tracking.
File Description
TextGrabber2/​Sources/​App/​App+Menu.swift Adds version-gated native presentation and deferred cleanup.
TextGrabber2/​Sources/​App/​App+Event.swift Passes events through while the native menu is visible.
TextGrabber2/​Sources/​App/​App.swift Disables manual highlighting for native presentation.

Review effort: Balanced

@cyanzhong
cyanzhong merged commit 947aa07 into main Oct 19, 2026
2 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.

2 participants