From e5958e3ca8448b495bfe2f4def4d86e5bb36b634 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 15 Feb 2021 15:37:13 +0100 Subject: [PATCH] GuiSearch: catch Esc --- src/frontends/qt/GuiSearch.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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()) { -- 2.39.5