File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -2731,6 +2731,14 @@ void ProjectManager::_on_search_term_changed(const String &p_term) {
27312731 _update_project_buttons ();
27322732}
27332733
2734+ void ProjectManager::_on_search_term_submitted (const String &p_text) {
2735+ if (tabs->get_current_tab () != 0 ) {
2736+ return ;
2737+ }
2738+
2739+ _open_selected_projects_ask ();
2740+ }
2741+
27342742void ProjectManager::_bind_methods () {
27352743 ClassDB::bind_method (" _update_project_buttons" , &ProjectManager::_update_project_buttons);
27362744 ClassDB::bind_method (" _version_button_pressed" , &ProjectManager::_version_button_pressed);
@@ -2899,6 +2907,7 @@ ProjectManager::ProjectManager() {
28992907 search_box->set_tooltip_text (TTR (" This field filters projects by name and last path component.\n To filter projects by name and full path, the query must contain at least one `/` character." ));
29002908 search_box->set_clear_button_enabled (true );
29012909 search_box->connect (" text_changed" , callable_mp (this , &ProjectManager::_on_search_term_changed));
2910+ search_box->connect (" text_submitted" , callable_mp (this , &ProjectManager::_on_search_term_submitted));
29022911 search_box->set_h_size_flags (Control::SIZE_EXPAND_FILL);
29032912 hb->add_child (search_box);
29042913
Original file line number Diff line number Diff line change @@ -440,6 +440,7 @@ class ProjectManager : public Control {
440440 void _on_order_option_changed (int p_idx);
441441 void _on_tab_changed (int p_tab);
442442 void _on_search_term_changed (const String &p_term);
443+ void _on_search_term_submitted (const String &p_text);
443444
444445 static Ref<Texture2D> _file_dialog_get_icon (const String &p_path);
445446 static Ref<Texture2D> _file_dialog_get_thumbnail (const String &p_path);
You can’t perform that action at this time.
0 commit comments