From 468d43c4c70b4522cd87f23344c8706ae2215d2c Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 11 Jun 2021 13:18:58 +0400 Subject: [PATCH] Don't send by Enter elements, chosen by mouse. --- Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp index 30fc60d0e..bd344cf63 100644 --- a/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp +++ b/Telegram/SourceFiles/chat_helpers/field_autocomplete.cpp @@ -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()) {