Verified Commit 59d82da3 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

ChatMessage: Copy message to clipboard on right click

parent e6d7a91f
......@@ -71,6 +71,15 @@ RowLayout {
color: sentByMe ? Kirigami.Theme.complementaryTextColor : Kirigami.Theme.highlightColor
radius: Kirigami.Units.smallSpacing * 2
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.RightButton
onClicked: {
kaidan.copyToClipboard(messageBody)
passiveNotification(qsTr("Message copied to clipboard"))
}
}
layer.enabled: box.visible
layer.effect: DropShadow {
verticalOffset: Kirigami.Units.gridUnit * 0.08
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment