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,
|
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()) {
|
||||||
|
|
Loading…
Reference in a new issue