diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-24 16:37:51 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-24 16:37:51 +0200 |
commit | be29e22144307802956bf201c5790c1ed9d7baaa (patch) | |
tree | d4c8dfd85bd19e53ff36369d5c73b15ec98ed24c /components/accounts | |
parent | 9e1f5ffade77222f5fa05d9ad1c2d098259af280 (diff) | |
download | kube-be29e22144307802956bf201c5790c1ed9d7baaa.tar.gz kube-be29e22144307802956bf201c5790c1ed9d7baaa.zip |
Focus handling in accountsview
Diffstat (limited to 'components/accounts')
-rw-r--r-- | components/accounts/contents/ui/AccountWizard.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml index 394c3d32..187741b9 100644 --- a/components/accounts/contents/ui/AccountWizard.qml +++ b/components/accounts/contents/ui/AccountWizard.qml | |||
@@ -28,7 +28,6 @@ Kube.Popup { | |||
28 | property var availableAccountPlugins: [] | 28 | property var availableAccountPlugins: [] |
29 | 29 | ||
30 | modal: true | 30 | modal: true |
31 | focus: true | ||
32 | closePolicy: requireSetup ? Controls2.Popup.NoAutoClose : Controls2.Popup.CloseOnEscape | Controls2.Popup.CloseOnPressOutside | 31 | closePolicy: requireSetup ? Controls2.Popup.NoAutoClose : Controls2.Popup.CloseOnEscape | Controls2.Popup.CloseOnPressOutside |
33 | 32 | ||
34 | clip: true | 33 | clip: true |
@@ -55,6 +54,11 @@ Kube.Popup { | |||
55 | id: mainView | 54 | id: mainView |
56 | 55 | ||
57 | FocusScope { | 56 | FocusScope { |
57 | onActiveFocusChanged: { | ||
58 | if (activeFocus) { | ||
59 | layout.children[0].forceActiveFocus(Qt.TabFocusReason) | ||
60 | } | ||
61 | } | ||
58 | Kube.Heading { | 62 | Kube.Heading { |
59 | id: heading | 63 | id: heading |
60 | text: qsTr("Select your new account type") | 64 | text: qsTr("Select your new account type") |