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") text: qsTr("Edit Message")
visible: display.can_be_edited visible: display.can_be_edited
} }
MenuItem {
onClicked: {
Clipboard.text = messageText.text
}
text: qsTr("Copy Message to Clipboard")
}
MenuItem { MenuItem {
onClicked: { onClicked: {
deleteMessageRemorseItem.execute(messageListItem, qsTr("Deleting message"), function() { tdLibWrapper.deleteMessages(chatInformation.id, [ display.id ]); } ); deleteMessageRemorseItem.execute(messageListItem, qsTr("Deleting message"), function() { tdLibWrapper.deleteMessages(chatInformation.id, [ display.id ]); } );

View file

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