Browse Source

Focus is still not working correctly

Causes UI to hang up
QGC4.4
Don Gagne 9 years ago
parent
commit
3e7d937594
  1. 4
      src/QmlControls/ParameterEditorDialog.qml
  2. 4
      src/QmlControls/QGCView.qml

4
src/QmlControls/ParameterEditorDialog.qml

@ -58,7 +58,7 @@ QGCViewDialog { @@ -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 { @@ -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

4
src/QmlControls/QGCView.qml

@ -146,7 +146,7 @@ FactPanel { @@ -146,7 +146,7 @@ FactPanel {
viewPanel.enabled = false
__dialogOverlay.visible = true
__dialogComponentLoader.item.forceActiveFocus()
//__dialogComponentLoader.item.forceActiveFocus()
__animateShowDialog.start()
}
@ -174,7 +174,7 @@ FactPanel { @@ -174,7 +174,7 @@ FactPanel {
}
function hideDialog() {
__dialogComponentLoader.item.focus = false
//__dialogComponentLoader.item.focus = false
viewPanel.enabled = true
__animateHideDialog.start()
}

Loading…
Cancel
Save