summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-23 14:59:57 +0200
committerGitHub <noreply@github.com>2019-09-23 14:59:57 +0200
commit915b27b0ab6ebc59eab7fe56b353b798c3a639f1 (patch)
treedd9a464973dadee8d6a687352f6063ce86b832ad /editor
parent965e059146bb6f35b5397403c7792701943b7dd8 (diff)
parent61299dc45113a0d2be1ee1daae212a27d6b6fc10 (diff)
Merge pull request #32266 from Calinou/project-manager-autofocus-search
Focus the project manager's search box automatically on startup
Diffstat (limited to 'editor')
-rw-r--r--editor/project_manager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index 701676a7f8..e2527a4039 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -1757,6 +1757,12 @@ void ProjectManager::_notification(int p_what) {
if (_project_list->get_project_count() == 0 && StreamPeerSSL::is_available())
open_templates->popup_centered_minsize();
+
+ if (_project_list->get_project_count() >= 1) {
+ // Focus on the search box immediately to allow the user
+ // to search without having to reach for their mouse
+ project_filter->search_box->grab_focus();
+ }
} break;
case NOTIFICATION_VISIBILITY_CHANGED: {