MeetingBar
MeetingBar copied to clipboard
Bug: Issues when using keyboard shortcut to open menu
App version 3.10.0
Describe the bug When using the "Open menu" keyboard shortcut, if the keyboard combination is pressed multiple times, closing the menu with the Esc key requires as many presses to actually dismiss it.
To Reproduce Steps to reproduce the behavior:
- Ensure a shortcut is set for "Open menu"
- Press the previous key combination to open the menu
- Repeat the key combination one or more times
- Press the Esc key until the menu closes
Expected behavior I discovered this because I had assumed repeating the keyboard shortcut would close the menu (as I have seen this convention used in other macOS apps). I believe this would be the best user experience, but if toggling behavior is not desired, a single Esc keypress should completely dismiss the menu.
Desktop (please complete the following information):
- macOS version: 11.6.1
Additional context Thanks for the excellent work on this app!
Yeah, that's still happening in v4.0.5
. π
It would be great addressing the shortcut as a menu toggle. Ideally, repeating the open menu shortcut for the second time would hide the menu instead.
Thanks for the report!
I have delved deeply into this problem.
The only way to open the status bar item is to use performClick
button method. However, there is no way to know if the menu is open or not. Also, this method blocks the execution of the following code until the menu is closed. Therefore, it is impossible to programmatically press the button again, it happens sequentially.
So, until Apple adds better control over the status bar, it is impossible to fix this bug. Sorry.
That makes sense, @leits. Thanks for looking into it, and I appreciate the explanation!