+2 votes

I'm creating linedits every time I press a button and I want to make it so just as it's created it gets focused and ready to type in without any more inputs. I've tried grab_focus and grab_click_focus but it doesn't seem to work. How can I achieve this result?

asked Jul 23, 2019 in Engine by IHate (43 points)
edited Jul 23, 2019 by IHate

1 Answer

+1 vote

Related: https://godotengine.org/qa/8355/button-set-focus

answered Jul 24, 2019 by hashak (44 points)

As I said on my post I already tried those, but it ended up not been fault of the grab_focus but some problem with the theme I was using. Using the same settings but using the costume style instead of the theme works just fine, idk if it's a bug or what.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.