This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I have 2 LineEdits(mailin and passin) in a menu of mine and i would like the next LineEdit to be focused when the user presses enter on it.

My current not working code would be:

mail_in.connect("text_entered",pass_in,"grab_focus")

but it doesnt work since text_entered returns a string and grab_focus doesnt expect any arguments, so it throws an error.

is there any way to achieve this functionality without having to create an intermediate function in my script that only calls grab_focus without arguments?
since that solution seems quite redundant

Godot version 3.5
in Engine by (62 points)

Please log in or register to answer this question.

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.