Open Mashmashin opened 1 week ago
Haven't confirmed but should be caused by this code: https://github.com/godotengine/godot/blob/83d54ab2ad476ae265b323c2b88f4623b922f4c6/editor/editor_properties_array_dict.cpp#L1178-L1183
But can't see how it is affected specifically by typed dictionaries, but confirmed that non-typed dictionaries won't trigger this
CC @Repiteo
@AThousandShips I found that grab_focus
skips focusing with an early return, but only for non-typed arrays. I believe it has to do with the default value that only appears for typed ones, e.g. 0 for int values.
Do you mind if I try fixing this?
Tested versions
4.4.dev2
System information
Windows 11 - Godot 4.4.dev2 - Vulkan(Forward+)
Issue description
If you have typed dictionary open in the inspector (so you can edit the values), it will grab the focus away from script editor everytime it has done checking for errors.
Here's a video I am experiencing
Steps to reproduce
Minimal reproduction project (MRP)
dictionary_issue.zip