diff options
author | Eric M <41730826+EricEzaM@users.noreply.github.com> | 2021-10-06 01:28:29 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-06 01:28:29 +1000 |
commit | ced7d51e232560ddbb27d7428a47ba932eeb4746 (patch) | |
tree | 6104dbdc677f686d6db850874c991176f3c1b31f /scene/gui | |
parent | 198b49d8b589e88a5ae61fc8418ebf8890d2d1f7 (diff) |
Fix the "END" key behaving like "PAGE_DOWN" in code completion.
Before: behaved like page down.
After: goes to last item.
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/code_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp index b816f12bc3..46ec7b4d3d 100644 --- a/scene/gui/code_edit.cpp +++ b/scene/gui/code_edit.cpp @@ -433,7 +433,7 @@ void CodeEdit::gui_input(const Ref<InputEvent> &p_gui_input) { return; } if (k->is_action("ui_end", true)) { - code_completion_current_selected = MIN(code_completion_options.size() - 1, code_completion_current_selected + code_completion_max_lines); + code_completion_current_selected = code_completion_options.size() - 1; update(); accept_event(); return; |