From: Juergen Spitzmueller Date: Mon, 15 Feb 2021 14:37:13 +0000 (+0100) Subject: GuiSearch: catch Esc X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e5958e3ca8448b495bfe2f4def4d86e5bb36b634;p=features.git GuiSearch: catch Esc --- diff --git a/src/frontends/qt/GuiSearch.cpp b/src/frontends/qt/GuiSearch.cpp index 1658804cd1..ee83692274 100644 --- a/src/frontends/qt/GuiSearch.cpp +++ b/src/frontends/qt/GuiSearch.cpp @@ -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()) {