aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins
diff options
context:
space:
mode:
authorRémi Verschelde2016-01-27 18:10:25 +0100
committerRémi Verschelde2016-01-27 18:10:25 +0100
commit9a2dd3ebbb9dfe5e4aae24308f25762676135fb1 (patch)
treeb10a6bad3b9db7763f548fe670df3d1218328ef2 /tools/editor/plugins
parent9e2736b98491141c4e9da7f134a54c77dbbd313e (diff)
parentd6adb9b9c2ea95f3997df8fcdc667146c31904e9 (diff)
downloadgodot-9a2dd3ebbb9dfe5e4aae24308f25762676135fb1.tar.gz
godot-9a2dd3ebbb9dfe5e4aae24308f25762676135fb1.tar.zst
godot-9a2dd3ebbb9dfe5e4aae24308f25762676135fb1.zip
Merge pull request #3490 from TheHX/issue-3453
Fix input passing to script editor even if not visible
Diffstat (limited to 'tools/editor/plugins')
-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 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();