mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
void HistoryWidget::tryProcessKeyInput(not_null<QKeyEvent*> e) {
|
||||||
if (_canSendTexts && _field->isVisible()) {
|
e->accept();
|
||||||
|
keyPressEvent(e);
|
||||||
|
if (!e->isAccepted() && _canSendTexts && _field->isVisible()) {
|
||||||
_field->setFocusFast();
|
_field->setFocusFast();
|
||||||
QCoreApplication::sendEvent(_field->rawTextEdit(), e);
|
QCoreApplication::sendEvent(_field->rawTextEdit(), e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue