mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Add up/down key navigation to layernum box
This commit is contained in:
parent
65d721cc1d
commit
af265be900
1 changed files with 3 additions and 0 deletions
|
@ -570,6 +570,9 @@ Item
|
||||||
font: UM.Theme.getFont("default");
|
font: UM.Theme.getFont("default");
|
||||||
background: Item { }
|
background: Item { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Keys.onUpPressed: slider.activeHandle.setValue(slider.activeHandle.value + ((event.modifiers & Qt.ShiftModifier) ? 10 : 1))
|
||||||
|
Keys.onDownPressed: slider.activeHandle.setValue(slider.activeHandle.value - ((event.modifiers & Qt.ShiftModifier) ? 10 : 1))
|
||||||
}
|
}
|
||||||
|
|
||||||
BusyIndicator
|
BusyIndicator
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue