Preserve profile name input focus
This commit is contained in:
parent
1f3308d83b
commit
2cb49cf680
2 changed files with 55 additions and 42 deletions
|
|
@ -735,6 +735,13 @@ func _validate_profile_confirmation_focus() -> void:
|
|||
page.call("activate")
|
||||
page.call("set_interactive", true)
|
||||
page.call("reset_controller_zone")
|
||||
var name_edit := page.get("_name_edit") as LineEdit
|
||||
name_edit.grab_focus()
|
||||
page.call("_on_name_changed", "V")
|
||||
_expect(
|
||||
root.gui_get_focus_owner() == name_edit,
|
||||
"Typing a profile name released the active name field.",
|
||||
)
|
||||
var suggestions := page.get("_suggestions") as HBoxContainer
|
||||
var suggestion := Button.new()
|
||||
suggestion.text = "alternate name"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue