2
0
Эх сурвалжийг харах

Fix input passing to script editor even if not visible

Franklin Sobrinho 9 жил өмнө
parent
commit
d6adb9b9c2

+ 1 - 1
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();