Add context menu item: copy message to clipboard

This commit is contained in:
Christian Stemmle 2020-10-31 15:23:58 +01:00
parent 72315312d6
commit a9fe6d51d2
2 changed files with 10 additions and 0 deletions

View file

@ -555,6 +555,12 @@ Page {
text: qsTr("Edit Message")
visible: display.can_be_edited
}
MenuItem {
onClicked: {
Clipboard.text = messageText.text
}
text: qsTr("Copy Message to Clipboard")
}
MenuItem {
onClicked: {
deleteMessageRemorseItem.execute(messageListItem, qsTr("Deleting message"), function() { tdLibWrapper.deleteMessages(chatInformation.id, [ display.id ]); } );

View file

@ -277,6 +277,10 @@
<source>Edit Message</source>
<translation>Nachricht bearbeiten</translation>
</message>
<message>
<source>Copy Message to Clipboard</source>
<translation>Nachricht in die Zwischenablage kopieren</translation>
</message>
<message>
<source>edited</source>
<translation>bearbeitet</translation>