From 92abb854452dcebf99febd98751bb07503029ae1 Mon Sep 17 00:00:00 2001 From: Marco Antonio <141619450+marcomolinaleija@users.noreply.github.com> Date: Thu, 5 Mar 2026 20:11:27 -0600 Subject: [PATCH] GUI: Set accessibility name on Tree inline editor when editing cells (cherry picked from commit c85ada054b2d69b5926817d8d5c46cf1ab4d5fbc) --- scene/gui/tree.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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()) {