mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Don't send by Enter elements, chosen by mouse.
This commit is contained in:
parent
425a632965
commit
468d43c4c7
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user