tlk / beoplay-macos-remote-gui

Remote control B&O Beoplay loudspeakers from macOS
MIT License
16 stars 1 forks source link

Hotkeys are disabled when the menu is open #28

Open tlk opened 3 years ago

tlk commented 3 years ago

Hotkeys should work when the menu is open, but they do not.

Currently, hotkeys are disabled/enabled when the menu is opened/closed. This workaround is used because otherwise keypresses are queued up while the menu is open and then being processed all-at-once after the menu closes.

I am not sure why or where the events are being queued and I do not understand the root cause of this issue. The hotkey library being used is this: https://github.com/soffes/HotKey/

I have been experimenting with another workaround based on hidden-but-enabled menu-items with corresponding keyboard shortcuts. This works, although the menu closes immediately on keypress.