on xenial help sign in
work in focus scope
cdfd0a6Lukáš Tinkl
qml/Wizard/CheckableSetting.qml+4−1
@@ -32,8 +32,9 @@ ListItem.Empty {
32
32
33 implicitHeight: Math.max(label.height, checkBox.height)
33 implicitHeight: Math.max(label.height, checkBox.height)
34
34
35− Item {
35+ FocusScope {
36 anchors.fill: parent
36 anchors.fill: parent
37+ focus: true
37
38
38 CheckBox {
39 CheckBox {
39 id: checkBox
40 id: checkBox
@@ -83,5 +84,7 @@ ListItem.Empty {
83 fontSize: "small"
84 fontSize: "small"
84 onLinkActivated: listItem.linkActivated(link)
85 onLinkActivated: listItem.linkActivated(link)
85 }
86 }
87+
88+ Keys.onSpacePressed: checkBox.trigger()
86 }
89 }
87}
90}