1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-20 14:45:44 +00:00

Fix input passing to script editor even if not visible

This commit is contained in:
Franklin Sobrinho
2016-01-27 13:56:05 -03:00
parent 1d99e71d94
commit d6adb9b9c2

View File

@@ -1694,7 +1694,7 @@ void ScriptEditor::ensure_select_current() {
Ref<Script> script = ste->get_edited_script(); 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(); ste->get_text_edit()->grab_focus();
edit_menu->show(); edit_menu->show();