Don't send by Enter elements, chosen by mouse.

This commit is contained in:
John Preston 2021-06-11 13:18:58 +04:00
parent 425a632965
commit 468d43c4c7

View file

@ -1013,7 +1013,7 @@ bool FieldAutocomplete::Inner::chooseAtIndex(
FieldAutocomplete::ChooseMethod method,
int index,
Api::SendOptions options) const {
if (index < 0) {
if (index < 0 || (method == ChooseMethod::ByEnter && _mouseSelection)) {
return false;
}
if (!_srows->empty()) {