summaryrefslogtreecommitdiffstats
path: root/editor/plugins/asset_library_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-09-06 10:14:49 +0200
committerGitHub <noreply@github.com>2022-09-06 10:14:49 +0200
commitc36735ef9779cf71d1ce749927faee53f08263a8 (patch)
tree79b72d3f73ceb5e244967632dc9b6a19bd10eed1 /editor/plugins/asset_library_editor_plugin.cpp
parent017c4f5608d2fd5259066357942d713956e73e03 (diff)
parent841b4dfeeb86b366106597f84f550b3d289cfeba (diff)
downloadredot-engine-c36735ef9779cf71d1ce749927faee53f08263a8.tar.gz
Merge pull request #65402 from m4gr3d/disable_android_editor_auto_focus_main
Diffstat (limited to 'editor/plugins/asset_library_editor_plugin.cpp')
-rw-r--r--editor/plugins/asset_library_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp
index 41383edafe..6bc443039f 100644
--- a/editor/plugins/asset_library_editor_plugin.cpp
+++ b/editor/plugins/asset_library_editor_plugin.cpp
@@ -591,10 +591,12 @@ void EditorAssetLibrary::_notification(int p_what) {
case NOTIFICATION_VISIBILITY_CHANGED: {
if (is_visible()) {
+#ifndef ANDROID_ENABLED
// Focus the search box automatically when switching to the Templates tab (in the Project Manager)
// or switching to the AssetLib tab (in the editor).
// The Project Manager's project filter box is automatically focused in the project manager code.
filter->grab_focus();
+#endif
if (initial_loading) {
_repository_changed(0); // Update when shown for the first time.