summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2020-01-01 17:57:40 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2020-01-01 17:57:40 +0800
commit838d9519bceb16efc9864579e91c9662461bf8d6 (patch)
tree5ec82cb3ebfb6de5bfd90a29eba783ad3eeecc3b /scene/gui
parent7fddf5eb7c6b6e58f891aaaa5b396f2b0cf616f8 (diff)
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 d479a1636a..098afc1b0b 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) {