From c6eb3e2feae612d96a7909ceca701658e41ec52f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 26 Jul 2017 10:24:22 -0600 Subject: Remove the selection on focus loss we're using the selection as focus. --- framework/qml/TreeView.qml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'framework/qml/TreeView.qml') 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 { if (activeFocus && !selection.hasSelection) { selectFirst() } + if (!activeFocus) { + selection.clear() + } } Keys.onDownPressed: { -- cgit v1.2.3