Browse Source

ParameterEditorDialog: set focus to the text field when changing parameters

QGC4.4
Beat Küng 8 years ago
parent
commit
b09904d8c5
  1. 5
      src/QmlControls/ParameterEditorDialog.qml

5
src/QmlControls/ParameterEditorDialog.qml

@ -85,6 +85,11 @@ QGCViewDialog { @@ -85,6 +85,11 @@ QGCViewDialog {
}
}
// set focus to the text field when becoming visible (in case of an Enum,
// the valueField is not visible, but it's not an issue because the combo
// box cannot have a focus)
onVisibleChanged: if (visible) valueField.forceActiveFocus()
QGCFlickable {
anchors.fill: parent
contentHeight: _column.y + _column.height

Loading…
Cancel
Save