summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-30 22:37:59 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-01 10:36:32 +0200
commitb7a7b66af673f0fa1c3916d2975dd8cd3a360b47 (patch)
tree45d5bc929907ead0988e45ecde36390b6cd289dc
parentbbd256f634844453758e5acf85a54a2dbe6965a4 (diff)
downloadkube-b7a7b66af673f0fa1c3916d2975dd8cd3a360b47.tar.gz
kube-b7a7b66af673f0fa1c3916d2975dd8cd3a360b47.zip
Autofocus the searchfield
-rw-r--r--components/kube/contents/ui/Kube.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml
index e3cf3393..eb280471 100644
--- a/components/kube/contents/ui/Kube.qml
+++ b/components/kube/contents/ui/Kube.qml
@@ -298,8 +298,13 @@ Controls2.ApplicationWindow {
298 298
299 Kube.TextField { 299 Kube.TextField {
300 id: searchField 300 id: searchField
301 focus: true
301 Layout.fillWidth: true 302 Layout.fillWidth: true
302 placeholderText: "Filter... (only applies to the mail list for now)" 303 placeholderText: "Filter... (only applies to the mail list for now)"
304 Keys.onReturnPressed: {
305 Kube.Fabric.postMessage(Kube.Messages.search, {"filterString": searchField.text})
306 search.close()
307 }
303 } 308 }
304 309
305 Kube.Button { 310 Kube.Button {