commit e5958e3ca8448b495bfe2f4def4d86e5bb36b634
Author: Juergen Spitzmueller <[email protected]>
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()) {
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs