mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Don't send by Enter elements, chosen by mouse.
This commit is contained in:
@@ -1013,7 +1013,7 @@ bool FieldAutocomplete::Inner::chooseAtIndex(
|
|||||||
FieldAutocomplete::ChooseMethod method,
|
FieldAutocomplete::ChooseMethod method,
|
||||||
int index,
|
int index,
|
||||||
Api::SendOptions options) const {
|
Api::SendOptions options) const {
|
||||||
if (index < 0) {
|
if (index < 0 || (method == ChooseMethod::ByEnter && _mouseSelection)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!_srows->empty()) {
|
if (!_srows->empty()) {
|
||||||
|
Reference in New Issue
Block a user