summaryrefslogtreecommitdiffstats
path: root/editor/project_manager
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-27 13:53:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-27 13:53:29 +0200
commit7b393c6ceec12529352a30b9f7290ef2b45f78e4 (patch)
treec63ebc1b28e72e97bf22d524ee8671e923a3efad /editor/project_manager
parentb537d2f15c94fd54e3621b23b38a1e58761b38ae (diff)
parentc15fe90ac427175273079157ddacd1ec9123c026 (diff)
downloadredot-engine-7b393c6ceec12529352a30b9f7290ef2b45f78e4.tar.gz
Merge pull request #97453 from Calinou/project-manager-enter-accepts-dialog
Make pressing Enter confirm project creation/import in the project manager
Diffstat (limited to 'editor/project_manager')
-rw-r--r--editor/project_manager/project_dialog.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/project_manager/project_dialog.cpp b/editor/project_manager/project_dialog.cpp
index 7acda16890..01868846bf 100644
--- a/editor/project_manager/project_dialog.cpp
+++ b/editor/project_manager/project_dialog.cpp
@@ -1024,8 +1024,14 @@ ProjectDialog::ProjectDialog() {
add_child(fdialog_install);
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_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_submitted), callable_mp(this, &ProjectDialog::ok_pressed).unbind(1));
+
fdialog_install->connect("dir_selected", callable_mp(this, &ProjectDialog::_install_path_selected));
fdialog_install->connect("file_selected", callable_mp(this, &ProjectDialog::_install_path_selected));