mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Fix shader editor focus when switching tabs
This commit is contained in:
parent
35fa048af5
commit
97a3fa3f12
1 changed files with 5 additions and 0 deletions
|
|
@ -235,6 +235,11 @@ void ShaderEditor::_menu_option(int p_option) {
|
|||
|
||||
void ShaderEditor::_tab_changed(int p_which) {
|
||||
|
||||
ShaderTextEditor *shader_editor = tab_container->get_child(p_which)->cast_to<ShaderTextEditor>();
|
||||
|
||||
if (shader_editor)
|
||||
shader_editor->get_text_edit()->grab_focus();
|
||||
|
||||
ensure_select_current();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue