diff --git a/resources/qml/SpinBox.qml b/resources/qml/SpinBox.qml index 3c5a4d95e2..5f809a434a 100644 --- a/resources/qml/SpinBox.qml +++ b/resources/qml/SpinBox.qml @@ -72,6 +72,18 @@ Item base.value = value * base.stepSize; } + // This forces TextField to commit typed values before incrementing with buttons. + // This fixes the typed value not being incremented when the textField has active focus. + up.onPressedChanged: + { + base.forceActiveFocus() + } + + down.onPressedChanged: + { + base.forceActiveFocus() + } + background: Item {} contentItem: Cura.TextField