diff --git a/src/FactSystem/FactControls/FactValueSlider.qml b/src/FactSystem/FactControls/FactValueSlider.qml index 0242f1815041511746fcf6b72e3b1158d6386d9d..d434bed5b45591a0e48530c52b9a5bed49aca81b 100644 --- a/src/FactSystem/FactControls/FactValueSlider.qml +++ b/src/FactSystem/FactControls/FactValueSlider.qml @@ -71,7 +71,8 @@ Rectangle { id: editDialogComponent ParameterEditorDialog { - fact: _fact + fact: _fact + setFocus: ScreenTools.isMobile ? false : true // Works around strange android bug where wrong virtual keyboard is displayed } } diff --git a/src/QmlControls/ParameterEditorDialog.qml b/src/QmlControls/ParameterEditorDialog.qml index f3462763955cb2c10d8fbc2852921c8c3d90faf3..41aa0962a79f0090135bbede96e2fbe073661966 100644 --- a/src/QmlControls/ParameterEditorDialog.qml +++ b/src/QmlControls/ParameterEditorDialog.qml @@ -27,6 +27,7 @@ QGCViewDialog { property bool showRCToParam: false property bool validate: false property string validateValue + property bool setFocus: true ///< true: focus is set to text field on display, false: focus not set (works around strange virtual keyboard bug with FactValueSlider signal valueChanged @@ -122,7 +123,7 @@ QGCViewDialog { unitsLabel: fact.units showUnits: fact.units != "" Layout.fillWidth: true - focus: true + focus: setFocus inputMethodHints: (fact.typeIsString || ScreenTools.isiOS) ? Qt.ImhNone : // iOS numeric keyboard has no done button, we can't use it Qt.ImhFormattedNumbersOnly // Forces use of virtual numeric keyboard