Skip to content
Snippets Groups Projects
Commit 4d79f807 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Don't let click on reply steal focus from the replied to elements

parent 505a8b57
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,8 @@ TextEdit {
{
id: ma
anchors.fill: parent
onPressed: mouse.accepted = false
propagateComposedEvents: true
acceptedButtons: Qt.NoButton
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor
}
......
......@@ -12,6 +12,13 @@ Rectangle {
width: parent.width
height: replyContainer.height
MouseArea {
anchors.fill: parent
preventStealing: true
onClicked: chat.positionViewAtIndex(chat.model.idToIndex(timelineManager.replyingEvent), ListView.Contain)
cursorShape: Qt.PointingHandCursor
}
Rectangle {
id: colorLine
......@@ -48,10 +55,4 @@ Rectangle {
}
color: Qt.rgba(userColor.r, userColor.g, userColor.b, 0.2)
MouseArea {
anchors.fill: parent
onClicked: chat.positionViewAtIndex(chat.model.idToIndex(timelineManager.replyingEvent), ListView.Contain)
cursorShape: Qt.PointingHandCursor
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment