summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-01 12:13:28 +0100
committerGitHub <noreply@github.com>2020-01-01 12:13:28 +0100
commitf7715b58bded9d0402ddff3c7fb389344ee3591c (patch)
treeeafd79335e9070d6d32e1f5bde56cf1fd826a857 /scene/gui
parent7f62bed2387db01e825b8d61253619e948c65058 (diff)
parent838d9519bceb16efc9864579e91c9662461bf8d6 (diff)
Merge pull request #34724 from timothyqiu/tree-right
Fixes behavior of right arrow key in Tree
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/tree.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index b685f031bc..b6ac3448fb 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -2162,9 +2162,8 @@ void Tree::_go_right() {
if (selected_item->get_children() != NULL && selected_item->is_collapsed()) {
selected_item->set_collapsed(false);
} else if (selected_item->get_next_visible()) {
- selected_item->select(0);
+ selected_col = 0;
_go_down();
- return;
}
} else {
if (select_mode == SELECT_MULTI) {