Commit 42f66b83 authored by DonLakeFlyer's avatar DonLakeFlyer

Take focus to close editing

parent dc02d007
...@@ -328,6 +328,9 @@ QGCView { ...@@ -328,6 +328,9 @@ QGCView {
// than computing the coordinate offset. // than computing the coordinate offset.
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {
// Take focus to close any previous editing
editorMap.focus = true
//-- Don't pay attention to items beneath the toolbar. //-- Don't pay attention to items beneath the toolbar.
var topLimit = parent.height - ScreenTools.availableHeight var topLimit = parent.height - ScreenTools.availableHeight
if(mouse.y < topLimit) { if(mouse.y < topLimit) {
......
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