diff --git a/Telegram/SourceFiles/ui/boxes/calendar_box.cpp b/Telegram/SourceFiles/ui/boxes/calendar_box.cpp index f8a02902e..95a1d8cb6 100644 --- a/Telegram/SourceFiles/ui/boxes/calendar_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/calendar_box.cpp @@ -1100,7 +1100,11 @@ void CalendarBox::resizeEvent(QResizeEvent *e) { void CalendarBox::keyPressEvent(QKeyEvent *e) { if (e->key() == Qt::Key_Escape) { - e->ignore(); + if (_context->selectionMode()) { + _context->toggleSelectionMode(false); + } else { + e->ignore(); + } } else if (e->key() == Qt::Key_Home) { jump(_previous.data()); } else if (e->key() == Qt::Key_End) {