Problems with the "Show Emojt Palette" action

Describe the bug
I activate the action "Show Emoji & Symbol / Character Palette" using a keyboard shortcut and it works as expected and opens the palette, but when I activate the shortcut again, it only succeeds in closing the palette if at that moment the focus is on a some text field. If you are not focused on a text field, the Palette is not closed. (screen recording attached below)

In the built-in operation of MacOS (System settings > Keyboard > Press :globe_with_meridians: key to > Show Emoji & Symbols), the palette closes back even without focusing on a text field.

This is not a duplicate of 'Show Emoji & Symbol / Character Palette' not working, because it complains that the panel does not open, and for me it does open, the problem is only in closing.

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):

None (the screen recording is with MacBook Keyboard, but I tested with Click Notch trigger and the behavior is the same)


Device information:

  • Type of Mac: MBP 2021
  • macOS version: Sonoma 14.4.1
  • BetterTouchTool version: 4.504 (45040)

Additional information (e.g. crash logs, related issues, etc.):