From a56696cdcb518d26184aee59ef72542aada6b66d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 11 Sep 2017 22:47:36 +0200 Subject: Avoid grabbing focus when invisible --- framework/qml/MailListView.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework') 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 { Kube.IconButton { iconName: Kube.Icons.remove + activeFocusOnTab: visible onClicked: { filterField.visible = false mailListModel.filter = "" @@ -97,7 +98,8 @@ FocusScope { Layout.fillWidth: true placeholderText: "Filter..." onTextChanged: mailListModel.filter = text - focus: true + activeFocusOnTab: visible + focus: visible } } } -- cgit v1.2.3