diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-04-27 12:09:00 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-04-27 12:09:00 +0200 |
commit | 5b6671f063957eab654cc5c2aa686fd89344c409 (patch) | |
tree | 1e8bbd69b3449c498a2e61bd86a186414377a7c9 /resources/qml/MessageView.qml | |
parent | Clear appveyor deps (diff) | |
download | nheko-5b6671f063957eab654cc5c2aa686fd89344c409.tar.xz |
Add Alt-F to forward messages
Diffstat (limited to 'resources/qml/MessageView.qml')
-rw-r--r-- | resources/qml/MessageView.qml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index a78f2525..bcbc72f2 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -165,7 +165,19 @@ ScrollView { 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; + chat.model.reply = idx >= 0 ? chat.model.indexToId(idx) : null; + } + } + + Shortcut { + sequence: "Alt+F" + onActivated: { + if (chat.model.reply) { + var forwardMess = forwardCompleterComponent.createObject(timelineRoot); + forwardMess.setMessageEventId(chat.model.reply); + forwardMess.open(); + chat.model.reply = null; + } } } |