[LyX/master] GuiSearch: catch Esc
Juergen Spitzmueller
spitz at lyx.org
Mon Feb 15 14:34:29 UTC 2021
commit e5958e3ca8448b495bfe2f4def4d86e5bb36b634
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Mon Feb 15 15:37:13 2021 +0100
GuiSearch: catch Esc
---
src/frontends/qt/GuiSearch.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/frontends/qt/GuiSearch.cpp b/src/frontends/qt/GuiSearch.cpp
index 1658804..ee83692 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()) {
More information about the lyx-cvs
mailing list