diff --git a/Telegram/SourceFiles/boxes/share_box.cpp b/Telegram/SourceFiles/boxes/share_box.cpp index 475368d6a..0b44b21de 100644 --- a/Telegram/SourceFiles/boxes/share_box.cpp +++ b/Telegram/SourceFiles/boxes/share_box.cpp @@ -426,6 +426,8 @@ void ShareBox::keyPressEvent(QKeyEvent *e) { _inner->activateSkipPage(contentHeight(), -1); } else if (e->key() == Qt::Key_PageDown) { _inner->activateSkipPage(contentHeight(), 1); + } else if (e->key() == Qt::Key_Escape && !_select->getQuery().isEmpty()) { + _select->clearQuery(); } else { BoxContent::keyPressEvent(e); }