Fix tag name focus

This commit is contained in:
kobewi 2025-09-30 20:25:47 +02:00
parent 4a1c1c483b
commit 56e62869fb

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);