summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.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/script_text_editor.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/script_text_editor.cpp')
-rw-r--r--editor/plugins/script_text_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index fff956a05e..cc955eae76 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -340,7 +340,9 @@ void ScriptTextEditor::set_edit_state(const Variant &p_state) {
}
if (editor_enabled) {
+#ifndef ANDROID_ENABLED
ensure_focus();
+#endif
}
}