1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix the "END" key behaving like "PAGE_DOWN" in code completion.

Before: behaved like page down.
After: goes to last item.
This commit is contained in:
Eric M
2021-10-06 01:28:29 +10:00
committed by GitHub
parent 198b49d8b5
commit ced7d51e23

View File

@@ -433,7 +433,7 @@ void CodeEdit::gui_input(const Ref<InputEvent> &p_gui_input) {
return; return;
} }
if (k->is_action("ui_end", true)) { 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(); update();
accept_event(); accept_event();
return; return;