Merge pull request #32266 from Calinou/project-manager-autofocus-search
Focus the project manager's search box automatically on startup
This commit is contained in:
commit
915b27b0ab
1 changed files with 6 additions and 0 deletions
|
@ -1757,6 +1757,12 @@ void ProjectManager::_notification(int p_what) {
|
||||||
|
|
||||||
if (_project_list->get_project_count() == 0 && StreamPeerSSL::is_available())
|
if (_project_list->get_project_count() == 0 && StreamPeerSSL::is_available())
|
||||||
open_templates->popup_centered_minsize();
|
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;
|
} break;
|
||||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue