diff options
author | Franklin Sobrinho <franklin_gs@hotmail.com> | 2016-01-27 13:56:05 -0300 |
---|---|---|
committer | Franklin Sobrinho <franklin_gs@hotmail.com> | 2016-01-27 13:56:05 -0300 |
commit | d6adb9b9c2ea95f3997df8fcdc667146c31904e9 (patch) | |
tree | 952619786b22528d33a5714a7dd8713b69ee94b9 | |
parent | 1d99e71d94add700ece9b1bf3a708ba33e6e1f75 (diff) |
Fix input passing to script editor even if not visible
-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 34d7e89760..e6e90eb0db 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(); |