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); }