Fix text selection with context menu
Make the context menu actually work with selected text in a message.
This commit is contained in:
committed by
Carl Schwan
parent
918bd5439c
commit
10030efd08
@@ -14,7 +14,7 @@ TimelineContainer {
|
|||||||
id: messageDelegate
|
id: messageDelegate
|
||||||
|
|
||||||
property bool isEmote: false
|
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)
|
onReplyClicked: ListView.view.goToEvent(eventID)
|
||||||
hoverComponent: hoverActions
|
hoverComponent: hoverActions
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ TextEdit {
|
|||||||
Layout.rightMargin: Kirigami.Units.largeSpacing
|
Layout.rightMargin: Kirigami.Units.largeSpacing
|
||||||
Layout.leftMargin: Kirigami.Units.largeSpacing
|
Layout.leftMargin: Kirigami.Units.largeSpacing
|
||||||
|
|
||||||
|
persistentSelection: true
|
||||||
|
|
||||||
text: "<style>
|
text: "<style>
|
||||||
table {
|
table {
|
||||||
width:100%;
|
width:100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user