mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Add Alt-F to forward messages
This commit is contained in:
parent
788131daf0
commit
5b6671f063
1 changed files with 13 additions and 1 deletions
|
@ -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…
Reference in a new issue