Use long press as right click on messages
This commit is contained in:
committed by
Carl Schwan
parent
41a4610acc
commit
f10ef11919
@@ -255,9 +255,14 @@ Kirigami.ScrollablePage {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: messageListView.width
|
Layout.maximumWidth: messageListView.width
|
||||||
mouseArea: MouseArea {
|
mouseArea: MouseArea {
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: openMessageContext(author, display, eventId, toolTip);
|
onClicked: {
|
||||||
|
if (mouse.button == Qt.RightButton) {
|
||||||
|
openMessageContext(author, display, eventId, toolTip);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onPressAndHold: openMessageContext(author, display, eventId, toolTip);
|
||||||
}
|
}
|
||||||
onReplyClicked: goToEvent(eventID)
|
onReplyClicked: goToEvent(eventID)
|
||||||
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);
|
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);
|
||||||
|
|||||||
Reference in New Issue
Block a user