mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 06:24:39 -04:00
Merge pull request #13 from jeremydouglass/patch-1
Add Up Down navigation to FlowView
This commit is contained in:
@ -193,10 +193,10 @@ Rectangle {
|
|||||||
if (event.modifiers & Qt.ControlModifier || event.modifiers & Qt.ShiftModifier)
|
if (event.modifiers & Qt.ControlModifier || event.modifiers & Qt.ShiftModifier)
|
||||||
return;
|
return;
|
||||||
var ci
|
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);
|
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);
|
ci = Math.max(0,list.currentIndex-1);
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user