From d46f974ab56df685fba907268b938060ed4f82dd Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 14 Jul 2023 16:18:48 +0400 Subject: [PATCH] Fix mark-as-read of deleted accounts by Enter. --- Telegram/SourceFiles/history/history_widget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index aaa9733fe..25abe7428 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -1804,7 +1804,9 @@ bool HistoryWidget::notify_switchInlineBotButtonReceived( } void HistoryWidget::tryProcessKeyInput(not_null e) { - if (_canSendTexts && _field->isVisible()) { + e->accept(); + keyPressEvent(e); + if (!e->isAccepted() && _canSendTexts && _field->isVisible()) { _field->setFocusFast(); QCoreApplication::sendEvent(_field->rawTextEdit(), e); }