Commit 3e7d9375 authored by Don Gagne's avatar Don Gagne

Focus is still not working correctly

Causes UI to hang up
parent 3a1f28cc
...@@ -58,7 +58,7 @@ QGCViewDialog { ...@@ -58,7 +58,7 @@ QGCViewDialog {
validationError.text = fact.validate(validateValue, false /* convertOnly */) validationError.text = fact.validate(validateValue, false /* convertOnly */)
forceSave.visible = true forceSave.visible = true
} }
valueField.forceActiveFocus() //valueField.forceActiveFocus()
} }
Column { Column {
...@@ -82,7 +82,7 @@ QGCViewDialog { ...@@ -82,7 +82,7 @@ QGCViewDialog {
QGCTextField { QGCTextField {
id: valueField id: valueField
text: validate ? validateValue : fact.valueString text: validate ? validateValue : fact.valueString
focus: true //focus: true
// At this point all Facts are numeric // At this point all Facts are numeric
inputMethodHints: Qt.ImhFormattedNumbersOnly inputMethodHints: Qt.ImhFormattedNumbersOnly
......
...@@ -146,7 +146,7 @@ FactPanel { ...@@ -146,7 +146,7 @@ FactPanel {
viewPanel.enabled = false viewPanel.enabled = false
__dialogOverlay.visible = true __dialogOverlay.visible = true
__dialogComponentLoader.item.forceActiveFocus() //__dialogComponentLoader.item.forceActiveFocus()
__animateShowDialog.start() __animateShowDialog.start()
} }
...@@ -174,7 +174,7 @@ FactPanel { ...@@ -174,7 +174,7 @@ FactPanel {
} }
function hideDialog() { function hideDialog() {
__dialogComponentLoader.item.focus = false //__dialogComponentLoader.item.focus = false
viewPanel.enabled = true viewPanel.enabled = true
__animateHideDialog.start() __animateHideDialog.start()
} }
......
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