mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 10:32:54 -05:00
Merge pull request #101160 from havi05/tree-fix-cursor-selection
Tree - fix cusor selection in `multi` selection-mode
This commit is contained in:
commit
7ad545e091
1 changed files with 4 additions and 2 deletions
|
@ -3451,7 +3451,8 @@ void Tree::_go_up() {
|
|||
return;
|
||||
}
|
||||
|
||||
select_single_item(prev, get_root(), col);
|
||||
selected_item = prev;
|
||||
emit_signal(SNAME("cell_selected"));
|
||||
queue_redraw();
|
||||
} else {
|
||||
while (prev && !prev->cells[col].selectable) {
|
||||
|
@ -3484,7 +3485,8 @@ void Tree::_go_down() {
|
|||
return;
|
||||
}
|
||||
|
||||
select_single_item(next, get_root(), col);
|
||||
selected_item = next;
|
||||
emit_signal(SNAME("cell_selected"));
|
||||
queue_redraw();
|
||||
} else {
|
||||
while (next && !next->cells[col].selectable) {
|
||||
|
|
Loading…
Reference in a new issue