diff options
author | Emmanuel Barroga <emmanuelbarroga@gmail.com> | 2019-08-27 10:15:37 -0700 |
---|---|---|
committer | Emmanuel Barroga <emmanuelbarroga@gmail.com> | 2019-08-27 10:15:37 -0700 |
commit | 36e39966778b17cb8ba78071b50e3f8c97db324f (patch) | |
tree | 777b3914616efcf2257de307fa89a0f8456b98bd | |
parent | b7c46ed9298b6be4d61574979f686f59b8313be0 (diff) |
Fixes Keyup Navigation in Project Manager
This PR fixes the issue of navigation via keyup in the project manager not selecting the first item.
-rw-r--r-- | editor/project_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index fbaa90c3d7..23aba06956 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1832,7 +1832,7 @@ void ProjectManager::_unhandled_input(const Ref<InputEvent> &p_ev) { break; int index = _project_list->get_single_selected_index(); - if (index - 1 > 0) { + if (index > 0) { _project_list->select_project(index - 1); _project_list->ensure_project_visible(index - 1); _update_project_buttons(); |