Skip to content

Pause hotkeys while menus are tracking#110

Open
Econa77 wants to merge 1 commit into
masterfrom
menu-tracking-hotkey-pause
Open

Pause hotkeys while menus are tracking#110
Econa77 wants to merge 1 commit into
masterfrom
menu-tracking-hotkey-pause

Conversation

@Econa77

@Econa77 Econa77 commented Jun 14, 2026

Copy link
Copy Markdown
Member

Adds an opt-in pausesWhenMenuIsTracking flag to HotKey so selected Carbon hotkeys are unregistered while AppKit is tracking an NSMenu and restored after tracking ends.

This avoids queued hotkey events being delivered after a menu closes when the key was pressed during menu tracking. The example app enables the flag for the sample hotkey and opens a small menu to exercise the behavior.

Checked locally with swift test.

@Econa77
Econa77 marked this pull request as ready for review June 14, 2026 07:30
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