..if you're not in an active control already? (grab_focus() doesn't work since I'm not focused in any control). I'm creating a custom UI using _draw and spawning a LineEdit.new()<br><br>Maybe I can warp mouse to the control and simulate a click?
How to set focus to a control from gdscript
Wow, I'm an idiot! I was using grab_focus before add_child! Sorry about this!
5 years later
well this mistake helped me in the end
a year later
Megalomaniak added the Godot Help tag .