mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix mark-as-read of deleted accounts by Enter.
This commit is contained in:
parent
1f69c61d51
commit
d46f974ab5
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue