diff options
| author | Franklin Sobrinho | 2016-01-27 13:56:05 -0300 |
|---|---|---|
| committer | Franklin Sobrinho | 2016-01-27 13:56:05 -0300 |
| commit | d6adb9b9c2ea95f3997df8fcdc667146c31904e9 (patch) | |
| tree | 952619786b22528d33a5714a7dd8713b69ee94b9 /tools/editor/plugins/script_editor_plugin.cpp | |
| parent | 1d99e71d94add700ece9b1bf3a708ba33e6e1f75 (diff) | |
| download | godot-d6adb9b9c2ea95f3997df8fcdc667146c31904e9.tar.gz godot-d6adb9b9c2ea95f3997df8fcdc667146c31904e9.tar.zst godot-d6adb9b9c2ea95f3997df8fcdc667146c31904e9.zip | |
Fix input passing to script editor even if not visible
Diffstat (limited to 'tools/editor/plugins/script_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 34d7e8976..e6e90eb0d 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -1694,7 +1694,7 @@ void ScriptEditor::ensure_select_current() { Ref<Script> script = ste->get_edited_script(); - if (!grab_focus_block && is_inside_tree()) + if (!grab_focus_block && is_visible()) ste->get_text_edit()->grab_focus(); edit_menu->show(); |
