mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Don't send by Enter elements, chosen by mouse.
This commit is contained in:
parent
425a632965
commit
468d43c4c7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue