summaryrefslogtreecommitdiffstats
path: root/components/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'components/accounts')
-rw-r--r--components/accounts/contents/ui/AccountWizard.qml12
-rw-r--r--components/accounts/contents/ui/AccountWizardPage.qml3
2 files changed, 10 insertions, 5 deletions
diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml
index 56c975e5..394c3d32 100644
--- a/components/accounts/contents/ui/AccountWizard.qml
+++ b/components/accounts/contents/ui/AccountWizard.qml
@@ -44,12 +44,17 @@ Kube.Popup {
44 stack.push(mainView.createObject(app)) 44 stack.push(mainView.createObject(app))
45 } 45 }
46 } 46 }
47 onCurrentItemChanged: {
48 if (!!currentItem) {
49 currentItem.forceActiveFocus()
50 }
51 }
47 } 52 }
48 53
49 Component { 54 Component {
50 id: mainView 55 id: mainView
51 56
52 Item { 57 FocusScope {
53 Kube.Heading { 58 Kube.Heading {
54 id: heading 59 id: heading
55 text: qsTr("Select your new account type") 60 text: qsTr("Select your new account type")
@@ -67,9 +72,7 @@ Kube.Popup {
67 delegate: Kube.Button { 72 delegate: Kube.Button {
68 Layout.fillWidth: true 73 Layout.fillWidth: true
69 text: modelData 74 text: modelData
70 onClicked: { 75 onClicked: stack.push(wizardPage.createObject(app, {accountType:modelData}))
71 stack.push(wizardPage.createObject(app, {accountType:modelData}))
72 }
73 } 76 }
74 } 77 }
75 } 78 }
@@ -79,6 +82,7 @@ Kube.Popup {
79 Component { 82 Component {
80 id: wizardPage 83 id: wizardPage
81 AccountWizardPage { 84 AccountWizardPage {
85 focus: true
82 requireSetup: root.requireSetup 86 requireSetup: root.requireSetup
83 onDone: { 87 onDone: {
84 root.close() 88 root.close()
diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml
index f7885ce4..74decf1f 100644
--- a/components/accounts/contents/ui/AccountWizardPage.qml
+++ b/components/accounts/contents/ui/AccountWizardPage.qml
@@ -24,7 +24,7 @@ import QtQuick.Controls 2.0 as Controls2
24import org.kube.framework 1.0 as Kube 24import org.kube.framework 1.0 as Kube
25 25
26 26
27Item { 27FocusScope {
28 id: root 28 id: root
29 property string accountType 29 property string accountType
30 signal done() 30 signal done()
@@ -88,6 +88,7 @@ Item {
88 Loader { 88 Loader {
89 id: loader 89 id: loader
90 anchors.fill: parent 90 anchors.fill: parent
91 focus: true
91 source: accountFactory.uiPath 92 source: accountFactory.uiPath
92 } 93 }
93 } 94 }