We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07f4c06 commit a4220e9Copy full SHA for a4220e9
editor/shader/shader_editor_plugin.cpp
@@ -163,6 +163,10 @@ void ShaderEditorPlugin::edit(Object *p_object) {
163
shader_tabs->set_current_tab(i);
164
shader_list->select(i);
165
_switch_to_editor(edited_shaders[i].shader_editor);
166
+ TextShaderEditor *text_shader_editor = Object::cast_to<TextShaderEditor>(edited_shaders[i].shader_editor);
167
+ if (text_shader_editor) {
168
+ text_shader_editor->get_code_editor()->get_text_editor()->grab_focus();
169
+ }
170
return;
171
}
172
0 commit comments