diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-11 22:47:36 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-11 22:47:36 +0200 |
commit | a56696cdcb518d26184aee59ef72542aada6b66d (patch) | |
tree | 57f956c51e0188a113d8c3c46105335a570f71f7 /framework/qml/MailListView.qml | |
parent | 17a936f45196b51b643a4a443857b5f88dd02d66 (diff) | |
download | kube-a56696cdcb518d26184aee59ef72542aada6b66d.tar.gz kube-a56696cdcb518d26184aee59ef72542aada6b66d.zip |
Avoid grabbing focus when invisible
Diffstat (limited to 'framework/qml/MailListView.qml')
-rw-r--r-- | framework/qml/MailListView.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/qml/MailListView.qml b/framework/qml/MailListView.qml index 6088e500..ffdacdbe 100644 --- a/framework/qml/MailListView.qml +++ b/framework/qml/MailListView.qml | |||
@@ -86,6 +86,7 @@ FocusScope { | |||
86 | 86 | ||
87 | Kube.IconButton { | 87 | Kube.IconButton { |
88 | iconName: Kube.Icons.remove | 88 | iconName: Kube.Icons.remove |
89 | activeFocusOnTab: visible | ||
89 | onClicked: { | 90 | onClicked: { |
90 | filterField.visible = false | 91 | filterField.visible = false |
91 | mailListModel.filter = "" | 92 | mailListModel.filter = "" |
@@ -97,7 +98,8 @@ FocusScope { | |||
97 | Layout.fillWidth: true | 98 | Layout.fillWidth: true |
98 | placeholderText: "Filter..." | 99 | placeholderText: "Filter..." |
99 | onTextChanged: mailListModel.filter = text | 100 | onTextChanged: mailListModel.filter = text |
100 | focus: true | 101 | activeFocusOnTab: visible |
102 | focus: visible | ||
101 | } | 103 | } |
102 | } | 104 | } |
103 | } | 105 | } |