From 841b4dfeeb86b366106597f84f550b3d289cfeba Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Mon, 5 Sep 2022 22:13:03 -0700 Subject: Disable logic that triggers automatic focus gain as the Godot Editor is loaded For the Godot Android Editor, this is an inconvenience as it causes the soft keyboard to show and block half of the view --- editor/plugins/script_text_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editor/plugins/script_text_editor.cpp') 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 } } -- cgit v1.2.3