Commit acca8d7e authored by Don Gagne's avatar Don Gagne

Take focus to commit fact editing

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