Chinese IME compatibility issue with Search and Quick Switcher

Steps to reproduce

  1. Open the search bar.
  2. Using macOS built-in Traditional Chinese IME, type some characters and press down arrow to open the IME phrase selection window.
  3. Press ESC to close the phrase window.

Expected result

The IME phrase selection window is closed and I can continue to edit Chinese characters in the search bar.

Actual result

The search bar is closed and the Chinese characters are sent to the main editor prematurely.

Environment

  • Operating system: macOS 12.6.1 and Obsidian 1.0.3
  • Debug info:

Additional information

  1. Screen recording
    https://drive.google.com/file/d/1ER_mqASz-NOgkrqVDLfIFcAFY2Ko-UTS/view?usp=share_link

  2. The same situation occurs when using IME in the Quick Switcher window.