Add Alt-F to forward messages

pull/564/head
Nicolas Werner 4 years ago
parent 788131daf0
commit 5b6671f063
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 14
      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;
}
}
}

Loading…
Cancel
Save