diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-21 05:37:42 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-21 05:37:42 +0200 |
commit | 1b19971ac2c76ba02a863e6dd128bce7ab9870be (patch) | |
tree | ca6a2d0b3e9f8b90e0eaa179ccee68db3ce71c16 | |
parent | 5245375311745b5bb35e695ac70d8eebf44f2e5f (diff) | |
download | kube-1b19971ac2c76ba02a863e6dd128bce7ab9870be.tar.gz kube-1b19971ac2c76ba02a863e6dd128bce7ab9870be.zip |
Force active focus for current view
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index bd562d52..adce5a29 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -245,6 +245,9 @@ Controls2.ApplicationWindow { | |||
245 | if (currentItem == peopleView) { | 245 | if (currentItem == peopleView) { |
246 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) | 246 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) |
247 | } | 247 | } |
248 | if (currentItem) { | ||
249 | currentItem.forceActiveFocus() | ||
250 | } | ||
248 | } | 251 | } |
249 | 252 | ||
250 | //These items are not visible until pushed onto the stack, so we keep them in resources instead of items | 253 | //These items are not visible until pushed onto the stack, so we keep them in resources instead of items |