mirror of
https://github.com/godotengine/godot.git
synced 2026-05-12 22:35:35 +00:00
GUI: Set accessibility name on Tree inline editor when editing cells
(cherry picked from commit c85ada054b)
This commit is contained in:
committed by
Thaddeus Crews
parent
468ecf2141
commit
92abb85445
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user