mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06:00
Add tab navigation to sidebar
This commit is contained in:
parent
14fb01ee46
commit
8a887915ac
2 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,7 @@ SettingItem
|
|||
id: control
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
activeFocusOnTab: true
|
||||
|
||||
property bool checked:
|
||||
{
|
||||
|
@ -49,6 +50,12 @@ SettingItem
|
|||
}
|
||||
}
|
||||
|
||||
Keys.onSpacePressed:
|
||||
{
|
||||
forceActiveFocus();
|
||||
propertyProvider.setPropertyValue("value", !checked);
|
||||
}
|
||||
|
||||
onClicked:
|
||||
{
|
||||
forceActiveFocus();
|
||||
|
|
|
@ -82,6 +82,7 @@ SettingItem
|
|||
right: parent.right
|
||||
verticalCenter: parent.verticalCenter
|
||||
}
|
||||
activeFocusOnTab: true
|
||||
|
||||
Keys.onReleased:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue