Global hotkey events are not triggered while an NSStatusItem menu is open

Number:rdar://FB8954653 Date Originated:28 December 2020 2:36AM
Status:Open Resolved:
Product:macOS Product Version:11
Classification:Bug Reproducible:yes
When an application registers for global hotkey events via `RegisterEventHotKey`, and has a `NSStatusItem` with it's menu opened, hotkey events to not arrive until the menu is closed.

Steps to reproduce:
1- Write an app that registers a global hotkey via `RegisterEventHotKey` and displays an `NSStatusItem` with a menu.
2- Run the app and open the menu.
3- Try to trigger the hotkey repeatedly.

Expected result:
The hotkey callbacks arrive instantly while the menu is opened.

Actual result:
The hotkey events arrive all at once when the menu is closed.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!