extends LineEdit func _ready() -> void: text_submitted.connect(submit) func submit(text: String): release_focus() var owner = get_owner() if owner is Control: var c = owner as Control c.grab_focus() pass