[LyX/master] Correct Right Arrow key processing in Modules list

Juergen Spitzmueller spitz at lyx.org
Fri Aug 14 07:48:41 UTC 2020


commit 4c3139314b2738f04928ff1c9cb3ec49fe45ece6
Author: Yuriy Skalko <yuriy.skalko at gmail.com>
Date:   Thu Aug 13 23:43:03 2020 +0300

    Correct Right Arrow key processing in Modules list
---
 src/frontends/qt/GuiSelectionManager.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt/GuiSelectionManager.cpp b/src/frontends/qt/GuiSelectionManager.cpp
index df43d0c..5732d1e 100644
--- a/src/frontends/qt/GuiSelectionManager.cpp
+++ b/src/frontends/qt/GuiSelectionManager.cpp
@@ -418,6 +418,10 @@ bool GuiSelectionManager::eventFilter(QObject * obj, QEvent * event)
 				return true;
 			}
 			else if (keyPressed == Qt::Key_Right) {
+				QModelIndex const idx = availableLV->currentIndex();
+				if (availableLV->model()->hasChildren(idx)) { // skip for headers
+					return false;
+				}
 				focusAndHighlight(selectedLV);
 				event->accept();
 				return true;


More information about the lyx-cvs mailing list