summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-01-30 23:57:39 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-30 23:57:39 +0100
commit9b7c1cb7f9f97fa228643e17f1a9c4d8437e0680 (patch)
treeca1b965c0af763f509529574327329c1b3573a7c
parentAdd explicit size to reply close button (diff)
downloadnheko-9b7c1cb7f9f97fa228643e17f1a9c4d8437e0680.tar.xz
Add scroll page shortcut
-rw-r--r--resources/qml/TimelineView.qml9
1 files changed, 9 insertions, 0 deletions
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