diff --git a/TODO.md b/TODO.md index 7bee0c59..8269061c 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,5 @@ # TODO -- show "copy selection" when right clicking on image - make it not select messages when closing context menu - long-press-drag to select multiple messages on touch - drag to select on non-touch diff --git a/src/gui/Pages/Chat/Timeline/EventDelegate.qml b/src/gui/Pages/Chat/Timeline/EventDelegate.qml index 7fa3c488..151eea9c 100644 --- a/src/gui/Pages/Chat/Timeline/EventDelegate.qml +++ b/src/gui/Pages/Chat/Timeline/EventDelegate.qml @@ -188,8 +188,15 @@ HColumnLayout { HMenuItem { icon.name: "copy-text" - text: qsTr("Copy text") - visible: ! copyLink.visible && ! copyMedia.visible + text: + eventList.selectedCount ? + qsTr("Copy selection") : + + copyMedia.visible ? + qsTr("Copy filename") : + + qsTr("Copy text") + onTriggered: { if (! eventList.selectedCount) { Clipboard.text = JSON.parse(model.source).body