commit 4c3139314b2738f04928ff1c9cb3ec49fe45ece6
Author: Yuriy Skalko <yuriy.ska...@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;
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to