How to set focus to a control from gdscript

WombatTurkeyWombatTurkey Posts: 14Member
..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()

Maybe I can warp mouse to the control and simulate a click?
Tagged:

Tags :

Answers

  • WombatTurkeyWombatTurkey Posts: 14Member
    Answer ✓
    Wow, I'm an idiot! I was using grab_focus before add_child! Sorry about this!
Sign In or Register to comment.