mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix mark-as-read of deleted accounts by Enter.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user