summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorvolzhs <volzhs@gmail.com>2019-05-21 03:34:55 +0900
committervolzhs <volzhs@gmail.com>2019-05-21 15:32:17 +0900
commit6f97022041719344dde5a126c8fa1a67363f3af4 (patch)
tree22a446c2832c35ce27914d56c32dc8cf9b2535ed /scene
parent053808e194cf869280eccfea5fa50aff55e7e03f (diff)
PageDown key selects last one when left items count is short
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/tree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index f22fe5b6a5..049cae9dd9 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -2266,7 +2266,7 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
next = _n;
} else {
- return;
+ break;
}
}
if (next == selected_item)
@@ -2304,7 +2304,7 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
prev = _n;
} else {
- return;
+ break;
}
}
if (prev == selected_item)