diff --git a/Telegram/SourceFiles/ui/scrollarea.cpp b/Telegram/SourceFiles/ui/scrollarea.cpp index 6289d25269..1e5dc16378 100644 --- a/Telegram/SourceFiles/ui/scrollarea.cpp +++ b/Telegram/SourceFiles/ui/scrollarea.cpp @@ -651,6 +651,8 @@ void ScrollArea::moveEvent(QMoveEvent *e) { void ScrollArea::keyPressEvent(QKeyEvent *e) { if ((e->key() == Qt::Key_Up || e->key() == Qt::Key_Down) && e->modifiers().testFlag(Qt::AltModifier)) { e->ignore(); + } else if(e->key() == Qt::Key_Escape || e->key() == Qt::Key_Back) { + ((QObject*)widget())->event(e); } else { QScrollArea::keyPressEvent(e); }