diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index 9c5826864ba..03318da157e 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -4473,6 +4473,9 @@ bool Tree::edit_selected(bool p_force_edit) { line_editor->select_all(); line_editor->show(); + const String &col_title = columns[col].title; + line_editor->set_accessibility_name(col_title.is_empty() ? c.text : col_title); + text_editor->hide(); popup_editor->set_position(popup_rect.position); @@ -4497,6 +4500,9 @@ bool Tree::edit_selected(bool p_force_edit) { text_editor->select_all(); text_editor->show(); + const String &col_title_ml = columns[col].title; + text_editor->set_accessibility_name(col_title_ml.is_empty() ? c.text : col_title_ml); + popup_editor->set_position(get_screen_position() + rect.position); popup_editor->set_size(rect.size * popup_scale); if (!popup_editor->is_embedded()) {