From 838d9519bceb16efc9864579e91c9662461bf8d6 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 1 Jan 2020 17:57:40 +0800 Subject: Fixes behavior of right arrow key in Tree --- scene/gui/tree.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scene/gui') 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) { -- cgit v1.2.3