beoplay-macos-remote-gui
beoplay-macos-remote-gui copied to clipboard
Hotkeys are disabled when the menu is open
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.