Merge pull request #97453 from Calinou/project-manager-enter-accepts-dialog
Make pressing Enter confirm project creation/import in the project manager
This commit is contained in:
commit
7b393c6cee
|
@ -1024,8 +1024,14 @@ ProjectDialog::ProjectDialog() {
|
||||||
add_child(fdialog_install);
|
add_child(fdialog_install);
|
||||||
|
|
||||||
project_name->connect(SceneStringName(text_changed), callable_mp(this, &ProjectDialog::_project_name_changed).unbind(1));
|
project_name->connect(SceneStringName(text_changed), callable_mp(this, &ProjectDialog::_project_name_changed).unbind(1));
|
||||||
|
project_name->connect(SceneStringName(text_submitted), callable_mp(this, &ProjectDialog::ok_pressed).unbind(1));
|
||||||
|
|
||||||
project_path->connect(SceneStringName(text_changed), callable_mp(this, &ProjectDialog::_project_path_changed).unbind(1));
|
project_path->connect(SceneStringName(text_changed), callable_mp(this, &ProjectDialog::_project_path_changed).unbind(1));
|
||||||
|
project_path->connect(SceneStringName(text_submitted), callable_mp(this, &ProjectDialog::ok_pressed).unbind(1));
|
||||||
|
|
||||||
install_path->connect(SceneStringName(text_changed), callable_mp(this, &ProjectDialog::_install_path_changed).unbind(1));
|
install_path->connect(SceneStringName(text_changed), callable_mp(this, &ProjectDialog::_install_path_changed).unbind(1));
|
||||||
|
install_path->connect(SceneStringName(text_submitted), callable_mp(this, &ProjectDialog::ok_pressed).unbind(1));
|
||||||
|
|
||||||
fdialog_install->connect("dir_selected", callable_mp(this, &ProjectDialog::_install_path_selected));
|
fdialog_install->connect("dir_selected", callable_mp(this, &ProjectDialog::_install_path_selected));
|
||||||
fdialog_install->connect("file_selected", callable_mp(this, &ProjectDialog::_install_path_selected));
|
fdialog_install->connect("file_selected", callable_mp(this, &ProjectDialog::_install_path_selected));
|
||||||
|
|
||||||
|
|
|
@ -141,5 +141,6 @@ SceneStringNames::SceneStringNames() {
|
||||||
confirmed = StaticCString::create("confirmed");
|
confirmed = StaticCString::create("confirmed");
|
||||||
|
|
||||||
text_changed = StaticCString::create("text_changed");
|
text_changed = StaticCString::create("text_changed");
|
||||||
|
text_submitted = StaticCString::create("text_submitted");
|
||||||
value_changed = StaticCString::create("value_changed");
|
value_changed = StaticCString::create("value_changed");
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,6 +154,7 @@ public:
|
||||||
StringName confirmed;
|
StringName confirmed;
|
||||||
|
|
||||||
StringName text_changed;
|
StringName text_changed;
|
||||||
|
StringName text_submitted;
|
||||||
StringName value_changed;
|
StringName value_changed;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue