summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-01-27 18:10:25 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-01-27 18:10:25 +0100
commit9a2dd3ebbb9dfe5e4aae24308f25762676135fb1 (patch)
treeb10a6bad3b9db7763f548fe670df3d1218328ef2
parent9e2736b98491141c4e9da7f134a54c77dbbd313e (diff)
parentd6adb9b9c2ea95f3997df8fcdc667146c31904e9 (diff)
Merge pull request #3490 from TheHX/issue-3453
Fix input passing to script editor even if not visible
-rw-r--r--tools/editor/plugins/script_editor_plugin.cpp2
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();