diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-09-06 10:14:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 10:14:49 +0200 |
commit | c36735ef9779cf71d1ce749927faee53f08263a8 (patch) | |
tree | 79b72d3f73ceb5e244967632dc9b6a19bd10eed1 /editor/project_manager.cpp | |
parent | 017c4f5608d2fd5259066357942d713956e73e03 (diff) | |
parent | 841b4dfeeb86b366106597f84f550b3d289cfeba (diff) | |
download | redot-engine-c36735ef9779cf71d1ce749927faee53f08263a8.tar.gz |
Merge pull request #65402 from m4gr3d/disable_android_editor_auto_focus_main
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r-- | editor/project_manager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index ed8c7b14c8..a5f6d3f142 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1901,11 +1901,13 @@ void ProjectManager::_notification(int p_what) { filter_option->select(default_sorting); _project_list->set_order_option(default_sorting); +#ifndef ANDROID_ENABLED 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 search_box->grab_focus(); } +#endif if (asset_library) { // Removes extra border margins. @@ -2443,6 +2445,7 @@ void ProjectManager::_on_order_option_changed(int p_idx) { } void ProjectManager::_on_tab_changed(int p_tab) { +#ifndef ANDROID_ENABLED if (p_tab == 0) { // Projects // Automatically grab focus when the user moves from the Templates tab // back to the Projects tab. @@ -2451,6 +2454,7 @@ void ProjectManager::_on_tab_changed(int p_tab) { // The Templates tab's search field is focused on display in the asset // library editor plugin code. +#endif } void ProjectManager::_on_search_term_changed(const String &p_term) { |