Clear forward query on Esc
This commit is contained in:
parent
43b01fcf43
commit
614237fc2e
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue