summaryrefslogtreecommitdiffstats
path: root/framework/qml/TreeView.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 10:24:22 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-26 11:08:30 -0600
commitc6eb3e2feae612d96a7909ceca701658e41ec52f (patch)
treedc3e26de20e3bc59f0360621d9477e660897d0bd /framework/qml/TreeView.qml
parentdb6028080c95db0b28d8fb35e6c707fd04fb1c4b (diff)
downloadkube-c6eb3e2feae612d96a7909ceca701658e41ec52f.tar.gz
kube-c6eb3e2feae612d96a7909ceca701658e41ec52f.zip
Remove the selection on focus loss
we're using the selection as focus.
Diffstat (limited to 'framework/qml/TreeView.qml')
-rw-r--r--framework/qml/TreeView.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/qml/TreeView.qml b/framework/qml/TreeView.qml
index 1fcb74a5..8f4f543b 100644
--- a/framework/qml/TreeView.qml
+++ b/framework/qml/TreeView.qml
@@ -132,6 +132,9 @@ FocusScope {
132 if (activeFocus && !selection.hasSelection) { 132 if (activeFocus && !selection.hasSelection) {
133 selectFirst() 133 selectFirst()
134 } 134 }
135 if (!activeFocus) {
136 selection.clear()
137 }
135 } 138 }
136 139
137 Keys.onDownPressed: { 140 Keys.onDownPressed: {