"Add Context" Popup - Text Highlight with Mouse

:lady_beetle: Description:
When using the “Add context” input field in the Cursor editor, if you click to highlight the text inside the input and release the mouse button outside the pop up window, the popup containing the input unexpectedly closes.

This seems to occur only when the mouse click is released outside the popup after highlighting the text. The popup should remain open as long as the focus is within the input, but it closes prematurely in this case.

Seems like the click release is updating the focus outside the popup.


Steps to Reproduce:

  1. Open the “Add context” input field in Cursor.
  2. Click inside the input field and highlight the text.
  3. Release the mouse click outside of the popup.
  4. The popup will close unexpectedly.

:laptop: Windows 0.49.6

:prohibited: This is not a deal breaker and using ctrl+A fixes the issue with typing over the text but using the mouse to highlight is not user friendly.