Custom Query Editor: Selected text is automatically removed when clicked on

Custom Query Editor: Selected text is automatically removed when clicked on

Hello,

in the Query Table Editor the selected text is automatically removed when clicked on.

Repro Steps:
1. select text

2. click on the selected section (somewhere on the purple highlighted area)
3. the selected text gets deleted


This is very critical and will only generate erroneous SQL code if you are not careful.

Why is that?
Can this be switched off?


Regards,
Sven