Removed Enter key from box for clearing history.

Fixed #9781.
This commit is contained in:
23rd 2020-12-22 08:37:36 +03:00
parent 055ce1ee24
commit b3f6fe1c10

View file

@ -801,7 +801,10 @@ void DeleteMessagesBox::resizeEvent(QResizeEvent *e) {
void DeleteMessagesBox::keyPressEvent(QKeyEvent *e) {
if (e->key() == Qt::Key_Enter || e->key() == Qt::Key_Return) {
deleteAndClear();
// Don't make the clearing history so easy.
if (!_wipeHistoryPeer) {
deleteAndClear();
}
} else {
BoxContent::keyPressEvent(e);
}