summaryrefslogtreecommitdiffstats
path: root/framework/qml/CheckBox.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-20 10:57:47 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-20 10:57:47 +0200
commit2ca1d1fb9390d8b8f7395f6f4c69d53988d9a4a9 (patch)
treef733058acc1650829df01fe8bfa1d1a677470cdf /framework/qml/CheckBox.qml
parent8a5d409456fa2505c0d78509e3ef5a2a5b517ec3 (diff)
downloadkube-2ca1d1fb9390d8b8f7395f6f4c69d53988d9a4a9.tar.gz
kube-2ca1d1fb9390d8b8f7395f6f4c69d53988d9a4a9.zip
Toggle checkbox with return.
toggle() doesn't reliably work for some reason, so we use the checked state instead.
Diffstat (limited to 'framework/qml/CheckBox.qml')
-rw-r--r--framework/qml/CheckBox.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/qml/CheckBox.qml b/framework/qml/CheckBox.qml
index ce4df209..e0655887 100644
--- a/framework/qml/CheckBox.qml
+++ b/framework/qml/CheckBox.qml
@@ -26,7 +26,9 @@ T.CheckBox {
26 implicitWidth: indicator.width 26 implicitWidth: indicator.width
27 implicitHeight: indicator.width 27 implicitHeight: indicator.width
28 28
29 Keys.onReturnPressed: root.toggle() 29 Keys.onReturnPressed: {
30 root.checked = !root.checked
31 }
30 32
31 indicator: Rectangle { 33 indicator: Rectangle {
32 width: Kube.Units.gridUnit 34 width: Kube.Units.gridUnit