mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 14:19:00 +08:00
Add tab navigation to sidebar
This commit is contained in:
parent
14fb01ee46
commit
8a887915ac
@ -17,6 +17,7 @@ SettingItem
|
|||||||
id: control
|
id: control
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
activeFocusOnTab: true
|
||||||
|
|
||||||
property bool checked:
|
property bool checked:
|
||||||
{
|
{
|
||||||
@ -49,6 +50,12 @@ SettingItem
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Keys.onSpacePressed:
|
||||||
|
{
|
||||||
|
forceActiveFocus();
|
||||||
|
propertyProvider.setPropertyValue("value", !checked);
|
||||||
|
}
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
forceActiveFocus();
|
forceActiveFocus();
|
||||||
|
@ -82,6 +82,7 @@ SettingItem
|
|||||||
right: parent.right
|
right: parent.right
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
activeFocusOnTab: true
|
||||||
|
|
||||||
Keys.onReleased:
|
Keys.onReleased:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user