Merge branch 'CURA-8945_spinbox_behaviour' of github.com:Ultimaker/Cura

This commit is contained in:
Jaime van Kessel 2022-03-15 16:44:57 +01:00
commit 74e46c6009

View File

@ -72,6 +72,18 @@ Item
base.value = value * base.stepSize; 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 {} background: Item {}
contentItem: Cura.TextField contentItem: Cura.TextField