Merge pull request #47889 from EricEzaM/PR/fix-autocomplete-accept-on-space

Fixed ui_accept (spacebar + return) accepting auto-completion options.
This commit is contained in:
Rémi Verschelde 2021-04-14 17:42:22 +02:00 committed by GitHub
commit f95945af5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3261,7 +3261,7 @@ void TextEdit::_gui_input(const Ref<InputEvent> &p_gui_input) {
accept_event();
return;
}
if (k->is_action("ui_accept", true) || k->is_action("ui_text_completion_accept", true)) {
if (k->is_action("ui_text_completion_accept", true)) {
_confirm_completion();
accept_event();
return;