PageDown key selects last one when left items count is short
This commit is contained in:
parent
053808e194
commit
6f97022041
|
@ -2266,7 +2266,7 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
|
||||||
next = _n;
|
next = _n;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (next == selected_item)
|
if (next == selected_item)
|
||||||
|
@ -2304,7 +2304,7 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
|
||||||
prev = _n;
|
prev = _n;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (prev == selected_item)
|
if (prev == selected_item)
|
||||||
|
|
Loading…
Reference in New Issue