Add scroll page shortcut

This commit is contained in:
Nicolas Werner 2020-01-30 23:57:39 +01:00
parent c2d436942e
commit 9b7c1cb7f9
1 changed files with 9 additions and 0 deletions

View File

@ -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