Commit acca8d7e authored by Don Gagne's avatar Don Gagne

Take focus to commit fact editing

parent 05ec8c40
......@@ -71,11 +71,15 @@ Rectangle {
drag.maximumY: itemDragger.parent.height - parent.height
preventStealing: true
onClicked: itemDragger.clicked()
onClicked: {
focus = true
itemDragger.clicked()
}
property bool dragActive: drag.active
onDragActiveChanged: {
if (dragActive) {
focus = true
if (!_dragStartSignalled) {
_dragStartSignalled = true
dragStart()
......
......@@ -116,6 +116,9 @@ Canvas {
QGCMouseArea {
fillItem: parent
onClicked: parent.clicked()
onClicked: {
focus = true
parent.clicked()
}
}
}
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