2020-03-28 22:18:00 +11:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick 2.12
|
|
|
|
import "../Base"
|
|
|
|
|
|
|
|
HQtObject {
|
2020-03-29 03:31:42 +11:00
|
|
|
id: root
|
|
|
|
|
|
|
|
|
2020-03-28 22:18:00 +11:00
|
|
|
property Item flickable: parent
|
2020-04-01 23:01:13 +11:00
|
|
|
property bool active: true
|
2020-03-28 22:18:00 +11:00
|
|
|
|
|
|
|
|
|
|
|
HShortcut {
|
2020-04-01 23:01:13 +11:00
|
|
|
active: root.active
|
2020-03-28 22:18:00 +11:00
|
|
|
sequences: window.settings.keys.scrollUp
|
|
|
|
onActivated: utils.flickPages(flickable, -1 / 10)
|
|
|
|
}
|
|
|
|
|
|
|
|
HShortcut {
|
2020-04-01 23:01:13 +11:00
|
|
|
active: root.active
|
2020-03-28 22:18:00 +11:00
|
|
|
sequences: window.settings.keys.scrollDown
|
|
|
|
onActivated: utils.flickPages(flickable, 1 / 10)
|
|
|
|
}
|
|
|
|
|
|
|
|
HShortcut {
|
2020-04-01 23:01:13 +11:00
|
|
|
active: root.active
|
2020-03-28 22:18:00 +11:00
|
|
|
sequences: window.settings.keys.scrollPageUp
|
|
|
|
onActivated: utils.flickPages(flickable, -1)
|
|
|
|
}
|
|
|
|
|
|
|
|
HShortcut {
|
2020-04-01 23:01:13 +11:00
|
|
|
active: root.active
|
2020-03-28 22:18:00 +11:00
|
|
|
sequences: window.settings.keys.scrollPageDown
|
|
|
|
onActivated: utils.flickPages(flickable, 1)
|
|
|
|
}
|
|
|
|
|
|
|
|
HShortcut {
|
2020-04-01 23:01:13 +11:00
|
|
|
active: root.active
|
2020-03-28 22:18:00 +11:00
|
|
|
sequences: window.settings.keys.scrollToTop
|
|
|
|
onActivated: utils.flickToTop(flickable)
|
|
|
|
}
|
|
|
|
|
|
|
|
HShortcut {
|
2020-04-01 23:01:13 +11:00
|
|
|
active: root.active
|
2020-03-28 22:18:00 +11:00
|
|
|
sequences: window.settings.keys.scrollToBottom
|
|
|
|
onActivated: utils.flickToBottom(flickable)
|
|
|
|
}
|
|
|
|
}
|