mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
055ce1ee24
commit
b3f6fe1c10
1 changed files with 4 additions and 1 deletions
|
@ -801,7 +801,10 @@ void DeleteMessagesBox::resizeEvent(QResizeEvent *e) {
|
||||||
|
|
||||||
void DeleteMessagesBox::keyPressEvent(QKeyEvent *e) {
|
void DeleteMessagesBox::keyPressEvent(QKeyEvent *e) {
|
||||||
if (e->key() == Qt::Key_Enter || e->key() == Qt::Key_Return) {
|
if (e->key() == Qt::Key_Enter || e->key() == Qt::Key_Return) {
|
||||||
deleteAndClear();
|
// Don't make the clearing history so easy.
|
||||||
|
if (!_wipeHistoryPeer) {
|
||||||
|
deleteAndClear();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
BoxContent::keyPressEvent(e);
|
BoxContent::keyPressEvent(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue