mirror of
https://github.com/godotengine/godot.git
synced 2025-02-16 07:40:36 +00:00
Don't try to move selection if there are no visible elements
This commit is contained in:
parent
e65a23762b
commit
f491d2fe24
@ -489,6 +489,10 @@ void QuickOpenResultContainer::handle_search_box_input(const Ref<InputEvent> &p_
|
||||
}
|
||||
|
||||
void QuickOpenResultContainer::_move_selection_index(Key p_key) {
|
||||
// Don't move selection if there are no results.
|
||||
if (num_visible_results <= 0) {
|
||||
return;
|
||||
}
|
||||
const int max_index = num_visible_results - 1;
|
||||
|
||||
int idx = selection_index;
|
||||
|
Loading…
Reference in New Issue
Block a user