script-ide icon indicating copy to clipboard operation
script-ide copied to clipboard

Scripts Popup textbox loses focus when enter pressed with zero matches

Open michaelgundlach opened this issue 3 months ago • 1 comments

I pressed my Scripts Popup shortcut to open the Scripts Popup, typed "v" which matched none of my 3 open tabs, and pressed Enter. No script opened, as expected. Then I pressed backspace to try to erase the "v" and type in another character.

Expected behavior: "v" erased, all open scripts displayed Actual behavior: None - the textbox lost had focus when I pressed Enter. No keyboard shortcut worked at that point except Escape.

An argument for the current behavior being a feature, not a bug: the current Godot Quick Open panel has the same behavior. If you type enough garbage in so that no results are displayed, and press Enter, the textbox loses focus. You are forced to press Escape to close it (or use the mouse).

michaelgundlach avatar Sep 23 '25 16:09 michaelgundlach

This is indeed default Godot behavior. We should fix that upstream. Can have a look when I have more time :)

Maran23 avatar Sep 24 '25 20:09 Maran23