mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Clear forward query on Esc
This commit is contained in:
@@ -426,6 +426,8 @@ void ShareBox::keyPressEvent(QKeyEvent *e) {
|
|||||||
_inner->activateSkipPage(contentHeight(), -1);
|
_inner->activateSkipPage(contentHeight(), -1);
|
||||||
} else if (e->key() == Qt::Key_PageDown) {
|
} else if (e->key() == Qt::Key_PageDown) {
|
||||||
_inner->activateSkipPage(contentHeight(), 1);
|
_inner->activateSkipPage(contentHeight(), 1);
|
||||||
|
} else if (e->key() == Qt::Key_Escape && !_select->getQuery().isEmpty()) {
|
||||||
|
_select->clearQuery();
|
||||||
} else {
|
} else {
|
||||||
BoxContent::keyPressEvent(e);
|
BoxContent::keyPressEvent(e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user