MeetingBar icon indicating copy to clipboard operation
MeetingBar copied to clipboard

Bug: Issues when using keyboard shortcut to open menu

Open djpowers opened this issue 3 years ago β€’ 1 comments

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:

  1. Ensure a shortcut is set for "Open menu"
  2. Press the previous key combination to open the menu
  3. Repeat the key combination one or more times
  4. 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!

djpowers avatar Jan 26 '22 23:01 djpowers

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.

hallaji avatar Jul 01 '22 14:07 hallaji

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.

leits avatar Oct 17 '22 16:10 leits

That makes sense, @leits. Thanks for looking into it, and I appreciate the explanation!

djpowers avatar Oct 18 '22 04:10 djpowers