GUI: Set accessibility name on Tree inline editor when editing cells

(cherry picked from commit c85ada054b)
This commit is contained in:
Marco Antonio
2026-03-05 20:11:27 -06:00
committed by Thaddeus Crews
parent 468ecf2141
commit 92abb85445
+6
View File
@@ -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()) {