GuiSearch: catch Esc

This commit is contained in:
Juergen Spitzmueller 2021-02-15 15:37:13 +01:00
parent 78ce7227f7
commit e5958e3ca8

View File

@ -101,6 +101,10 @@ void GuiSearchWidget::keyPressEvent(QKeyEvent * ev)
findClicked(ev->modifiers() == Qt::ShiftModifier);
return;
}
if (ev->key() == Qt::Key_Escape) {
dispatch(FuncRequest(LFUN_DIALOG_TOGGLE, "findreplace"));
return;
}
// we catch the key sequences for forward and backwards search
if (sym.isOK()) {