From 6f2a4bf2436e7411a6cb392bc24d0bc9286b411d Mon Sep 17 00:00:00 2001 From: Jeremy Douglass Date: Sun, 1 Jul 2018 08:39:13 -0700 Subject: [PATCH] Add Up Down navigation to FlowView Adds vertical navigation (up down) to FlowView. This corresponds visually to the File Name list display -- especially when the flow pane is hidden, pressing up-down is the intuitive way to navigate up-down in the list. --- YACReaderLibrary/qml/FlowView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/qml/FlowView.qml b/YACReaderLibrary/qml/FlowView.qml index c121584e..7a54cfb5 100644 --- a/YACReaderLibrary/qml/FlowView.qml +++ b/YACReaderLibrary/qml/FlowView.qml @@ -193,10 +193,10 @@ Rectangle { if (event.modifiers & Qt.ControlModifier || event.modifiers & Qt.ShiftModifier) return; var ci - if (event.key === Qt.Key_Right) { + if (event.key === Qt.Key_Right || event.key === Qt.Key_Down) { ci = Math.min(list.currentIndex+1, list.count - 1); } - else if (event.key === Qt.Key_Left) { + else if (event.key === Qt.Key_Left || event.key === Qt.Key_Up) { ci = Math.max(0,list.currentIndex-1); } else { return;