From 6f97022041719344dde5a126c8fa1a67363f3af4 Mon Sep 17 00:00:00 2001 From: volzhs Date: Tue, 21 May 2019 03:34:55 +0900 Subject: [PATCH] PageDown key selects last one when left items count is short --- scene/gui/tree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index f22fe5b6a5f..049cae9dd90 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2266,7 +2266,7 @@ void Tree::_gui_input(Ref p_event) { next = _n; } else { - return; + break; } } if (next == selected_item) @@ -2304,7 +2304,7 @@ void Tree::_gui_input(Ref p_event) { prev = _n; } else { - return; + break; } } if (prev == selected_item)