Merge pull request #101160 from havi05/tree-fix-cursor-selection

Tree - fix cusor selection in `multi` selection-mode
This commit is contained in:
Thaddeus Crews 2025-01-20 16:25:46 -06:00
commit 7ad545e091
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

@ -3451,7 +3451,8 @@ void Tree::_go_up() {
return; return;
} }
select_single_item(prev, get_root(), col); selected_item = prev;
emit_signal(SNAME("cell_selected"));
queue_redraw(); queue_redraw();
} else { } else {
while (prev && !prev->cells[col].selectable) { while (prev && !prev->cells[col].selectable) {
@ -3484,7 +3485,8 @@ void Tree::_go_down() {
return; return;
} }
select_single_item(next, get_root(), col); selected_item = next;
emit_signal(SNAME("cell_selected"));
queue_redraw(); queue_redraw();
} else { } else {
while (next && !next->cells[col].selectable) { while (next && !next->cells[col].selectable) {