From 3e7d9375945062459921522462605189743869fc Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Wed, 30 Dec 2015 10:51:59 -0800 Subject: [PATCH] Focus is still not working correctly Causes UI to hang up --- src/QmlControls/ParameterEditorDialog.qml | 4 ++-- src/QmlControls/QGCView.qml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/QmlControls/ParameterEditorDialog.qml b/src/QmlControls/ParameterEditorDialog.qml index 1efe21979..c6622eeae 100644 --- a/src/QmlControls/ParameterEditorDialog.qml +++ b/src/QmlControls/ParameterEditorDialog.qml @@ -58,7 +58,7 @@ QGCViewDialog { validationError.text = fact.validate(validateValue, false /* convertOnly */) forceSave.visible = true } - valueField.forceActiveFocus() + //valueField.forceActiveFocus() } Column { @@ -82,7 +82,7 @@ QGCViewDialog { QGCTextField { id: valueField text: validate ? validateValue : fact.valueString - focus: true + //focus: true // At this point all Facts are numeric inputMethodHints: Qt.ImhFormattedNumbersOnly diff --git a/src/QmlControls/QGCView.qml b/src/QmlControls/QGCView.qml index 929ec302c..199456e99 100644 --- a/src/QmlControls/QGCView.qml +++ b/src/QmlControls/QGCView.qml @@ -146,7 +146,7 @@ FactPanel { viewPanel.enabled = false __dialogOverlay.visible = true - __dialogComponentLoader.item.forceActiveFocus() + //__dialogComponentLoader.item.forceActiveFocus() __animateShowDialog.start() } @@ -174,7 +174,7 @@ FactPanel { } function hideDialog() { - __dialogComponentLoader.item.focus = false + //__dialogComponentLoader.item.focus = false viewPanel.enabled = true __animateHideDialog.start() } -- 2.22.0