From 42f66b83144b71051477ecde13a4765fd0958405 Mon Sep 17 00:00:00 2001 From: DonLakeFlyer Date: Wed, 31 Jan 2018 14:59:42 -0800 Subject: [PATCH] Take focus to close editing --- src/PlanView/PlanView.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PlanView/PlanView.qml b/src/PlanView/PlanView.qml index 55ac65606..3e6f94494 100644 --- a/src/PlanView/PlanView.qml +++ b/src/PlanView/PlanView.qml @@ -328,6 +328,9 @@ QGCView { // than computing the coordinate offset. anchors.fill: parent onClicked: { + // Take focus to close any previous editing + editorMap.focus = true + //-- Don't pay attention to items beneath the toolbar. var topLimit = parent.height - ScreenTools.availableHeight if(mouse.y < topLimit) { -- 2.22.0