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 ...@@ -11,6 +11,8 @@ import Linphone.Styles 1.0
ColumnLayout { ColumnLayout {
property var contact property var contact
// -----------------------------------------------------------------
spacing: 0 spacing: 0
ScrollableListView { ScrollableListView {
...@@ -156,7 +158,6 @@ ColumnLayout { ...@@ -156,7 +158,6 @@ ColumnLayout {
: event : event
} }
} }
} }
} }
......
import QtQuick 2.7 import QtQuick 2.7
import Common 1.0
import Linphone.Styles 1.0 import Linphone.Styles 1.0
import Utils 1.0 import Utils 1.0
...@@ -59,6 +60,16 @@ Item { ...@@ -59,6 +60,16 @@ Item {
? Qt.PointingHandCursor ? Qt.PointingHandCursor
: Qt.ArrowCursor : Qt.ArrowCursor
} }
InvertedMouseArea {
anchors.fill: parent
enabled: parent.activeFocus
onPressed: {
parent.deselect()
parent.focus = false
}
}
} }
Item { 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