godot icon indicating copy to clipboard operation
godot copied to clipboard

Fix dictionary editor steals focus when reloading script

Open Dowsley opened this issue 5 months ago • 6 comments

Fix https://github.com/godotengine/godot/issues/96913

The default value on the form of a typed dictionary (e.g. 0 for an int) would count as an "unsaved change", thus triggering a update_property call, and would trigger the focus.

I am not aware of any case in which focus trigger to the "New Key" or "New Pair" inspectors is desired. Assuming this correct, the proposed change is the simplest possible fix I could find.

Dowsley avatar Sep 13 '24 00:09 Dowsley