mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 15:57:52 -06:00
Merge branch 'CURA-8945_spinbox_behaviour' of github.com:Ultimaker/Cura
This commit is contained in:
commit
74e46c6009
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue