Commit 1da42133 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(Chat): deselect user selection if a click is detected outside message

parent f52dc26a
......@@ -11,6 +11,8 @@ import Linphone.Styles 1.0
ColumnLayout {
property var contact
// -----------------------------------------------------------------
spacing: 0
ScrollableListView {
......@@ -156,7 +158,6 @@ ColumnLayout {
: event
}
}
}
}
......
import QtQuick 2.7
import Common 1.0
import Linphone.Styles 1.0
import Utils 1.0
......@@ -59,6 +60,16 @@ Item {
? Qt.PointingHandCursor
: Qt.ArrowCursor
}
InvertedMouseArea {
anchors.fill: parent
enabled: parent.activeFocus
onPressed: {
parent.deselect()
parent.focus = false
}
}
}
Item {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment