From 9b7c1cb7f9f97fa228643e17f1a9c4d8437e0680 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 30 Jan 2020 23:57:39 +0100 Subject: [PATCH] Add scroll page shortcut --- resources/qml/TimelineView.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index 0d42bf4f..635d9ce2 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -69,6 +69,15 @@ Item { } } + Shortcut { + sequence: StandardKey.MoveToPreviousPage + onActivated: { chat.contentY = chat.contentY - chat.height; chat.returnToBounds(); } + } + Shortcut { + sequence: StandardKey.MoveToNextPage + onActivated: { chat.contentY = chat.contentY + chat.height; chat.returnToBounds(); } + } + ScrollBar.vertical: ScrollBar { id: scrollbar parent: chat.parent