[LyX/master] GuiSearch did not work with num. keypad enter

Pavel Sanda sanda at lyx.org
Tue Feb 16 07:49:13 UTC 2021


commit 1ba330722632b361f5f0838e8200450352c5cce8
Author: Pavel Sanda <sanda at lyx.org>
Date:   Tue Feb 16 08:52:21 2021 +0100

    GuiSearch did not work with num. keypad enter
---
 src/frontends/qt/GuiSearch.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt/GuiSearch.cpp b/src/frontends/qt/GuiSearch.cpp
index a66ba00..639fbf1 100644
--- a/src/frontends/qt/GuiSearch.cpp
+++ b/src/frontends/qt/GuiSearch.cpp
@@ -105,7 +105,7 @@ void GuiSearchWidget::keyPressEvent(QKeyEvent * ev)
 	setKeySymbol(&sym, ev);
 
 	// catch Return and Shift-Return
-	if (ev->key() == Qt::Key_Return) {
+	if (ev->key() == Qt::Key_Return || ev->key() == Qt::Key_Enter) {
 		findClicked(ev->modifiers() == Qt::ShiftModifier);
 		return;
 	}


More information about the lyx-cvs mailing list