Merge pull request #34724 from timothyqiu/tree-right

Fixes behavior of right arrow key in Tree
This commit is contained in:
Rémi Verschelde 2020-01-01 12:13:28 +01:00 committed by GitHub
commit f7715b58bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -2162,9 +2162,8 @@ void Tree::_go_right() {
if (selected_item->get_children() != NULL && selected_item->is_collapsed()) { if (selected_item->get_children() != NULL && selected_item->is_collapsed()) {
selected_item->set_collapsed(false); selected_item->set_collapsed(false);
} else if (selected_item->get_next_visible()) { } else if (selected_item->get_next_visible()) {
selected_item->select(0); selected_col = 0;
_go_down(); _go_down();
return;
} }
} else { } else {
if (select_mode == SELECT_MULTI) { if (select_mode == SELECT_MULTI) {