Fix text selection with context menu

Make the context menu actually work with selected text in a message.
This commit is contained in:
Bharadwaj Raju
2022-09-13 10:04:45 +00:00
committed by Carl Schwan
parent 918bd5439c
commit 10030efd08
2 changed files with 3 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ TimelineContainer {
id: messageDelegate
property bool isEmote: false
onOpenContextMenu: openMessageContext(model, parent.selectedText, Controller.plainText(label.textDocument))
onOpenContextMenu: openMessageContext(model, label.selectedText, Controller.plainText(label.textDocument))
onReplyClicked: ListView.view.goToEvent(eventID)
hoverComponent: hoverActions

View File

@@ -24,6 +24,8 @@ TextEdit {
Layout.rightMargin: Kirigami.Units.largeSpacing
Layout.leftMargin: Kirigami.Units.largeSpacing
persistentSelection: true
text: "<style>
table {
width:100%;