mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 00:34:26 +08:00
Merge branch 'CURA-8945_spinbox_behaviour' of github.com:Ultimaker/Cura
This commit is contained in:
commit
74e46c6009
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user