ignore enter keypress when completion is selected

This commit is contained in:
Jussi Kuokkanen 2020-08-31 12:21:47 +03:00
parent aed8d23aca
commit 254b7549eb

View file

@ -259,9 +259,10 @@ FilteredTextEdit::keyPressEvent(QKeyEvent *event)
// No completion to select, do normal behavior // No completion to select, do normal behavior
completer_->popup()->hide(); completer_->popup()->hide();
emoji_popup_open_ = false; emoji_popup_open_ = false;
} } else {
else
event->ignore(); event->ignore();
return;
}
} }
if (!(event->modifiers() & Qt::ShiftModifier)) { if (!(event->modifiers() & Qt::ShiftModifier)) {