2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-29 13:47:47 +00:00

Clear forward query on Esc

This commit is contained in:
RadRussianRus 2020-07-14 16:18:16 +03:00
parent 43b01fcf43
commit 614237fc2e

View File

@ -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);
}