diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-06 13:33:13 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-06 13:33:13 +0200 |
commit | e48dfd15fe9ae1ca0dd27fd3fb69e5acaf564833 (patch) | |
tree | 31582352f270631222736bb01d2c82e7a09d75dc /resources/qml/TimelineView.qml | |
parent | Fix reaction redaction for real this time (diff) | |
download | nheko-e48dfd15fe9ae1ca0dd27fd3fb69e5acaf564833.tar.xz |
Add shortcuts to select/deselect reply targets
Diffstat (limited to 'resources/qml/TimelineView.qml')
-rw-r--r-- | resources/qml/TimelineView.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index a63ca049..eca646d1 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -134,6 +134,21 @@ Page { sequence: StandardKey.MoveToNextPage onActivated: { chat.contentY = chat.contentY + chat.height / 2; chat.returnToBounds(); } } + Shortcut { + sequence: StandardKey.Cancel + onActivated: chat.model.reply = undefined + } + Shortcut { + sequence: "Alt+Up" + onActivated: chat.model.reply = chat.model.indexToId(chat.model.reply? chat.model.idToIndex(chat.model.reply) + 1 : 0) + } + Shortcut { + sequence: "Alt+Down" + onActivated: { + var idx = chat.model.reply? chat.model.idToIndex(chat.model.reply) - 1 : -1 + chat.model.reply = idx >= 0 ? chat.model.indexToId(idx) : undefined + } + } ScrollBar.vertical: ScrollBar { id: scrollbar |