Fix mark-as-read of deleted accounts by Enter.

This commit is contained in:
John Preston 2023-07-14 16:18:48 +04:00
parent 1f69c61d51
commit d46f974ab5
1 changed files with 3 additions and 1 deletions

View File

@ -1804,7 +1804,9 @@ bool HistoryWidget::notify_switchInlineBotButtonReceived(
}
void HistoryWidget::tryProcessKeyInput(not_null<QKeyEvent*> e) {
if (_canSendTexts && _field->isVisible()) {
e->accept();
keyPressEvent(e);
if (!e->isAccepted() && _canSendTexts && _field->isVisible()) {
_field->setFocusFast();
QCoreApplication::sendEvent(_field->rawTextEdit(), e);
}