diff options
author | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2022-09-05 22:13:03 -0700 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2022-09-05 22:33:01 -0700 |
commit | 841b4dfeeb86b366106597f84f550b3d289cfeba (patch) | |
tree | 3e774ee40b70a67c28944cb02d18e2ba80232e81 /editor/plugins/script_text_editor.cpp | |
parent | 4b164b8e4790cfeb597b763123560b59a96458e5 (diff) | |
download | redot-engine-841b4dfeeb86b366106597f84f550b3d289cfeba.tar.gz |
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
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 2 |
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 } } |