Merge pull request #111085 from KoBeWi/focus_tagger

Fix tag name focus
This commit is contained in:
Thaddeus Crews 2025-10-01 17:54:12 -05:00
commit ef496a4289
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -1842,7 +1842,7 @@ ProjectManager::ProjectManager() {
new_tag_name->connect(SceneStringName(text_changed), callable_mp(this, &ProjectManager::_set_new_tag_name));
new_tag_name->connect(SceneStringName(text_submitted), callable_mp(this, &ProjectManager::_create_new_tag).unbind(1));
create_tag_dialog->connect("about_to_popup", callable_mp(new_tag_name, &LineEdit::clear));
create_tag_dialog->connect("about_to_popup", callable_mp((Control *)new_tag_name, &Control::grab_focus), CONNECT_DEFERRED);
create_tag_dialog->connect("about_to_popup", callable_mp((Control *)new_tag_name, &Control::grab_focus).bind(false), CONNECT_DEFERRED);
tag_error = memnew(Label);
tag_error->set_focus_mode(FOCUS_ACCESSIBILITY);