From b09904d8c562ced983a8abb47b21f3e12c0d67ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 19 Sep 2017 10:46:11 +0200 Subject: [PATCH] ParameterEditorDialog: set focus to the text field when changing parameters --- src/QmlControls/ParameterEditorDialog.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/QmlControls/ParameterEditorDialog.qml b/src/QmlControls/ParameterEditorDialog.qml index f3e7606..0083f2a 100644 --- a/src/QmlControls/ParameterEditorDialog.qml +++ b/src/QmlControls/ParameterEditorDialog.qml @@ -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