on xenial help sign in
Give focus to one of the buttons of the dialog
3222ff6Albert Astals Cid
qml/Components/Dialogs.qml+3
@@ -156,6 +156,7 @@ Item {
156 }
156 }
157 }
157 }
158 Button {
158 Button {
159+ focus: true
159 text: i18n.ctr("Button: Log out from the system", "Log Out")
160 text: i18n.ctr("Button: Log out from the system", "Log Out")
160 onClicked: {
161 onClicked: {
161 unitySessionService.logout();
162 unitySessionService.logout();
@@ -184,6 +185,7 @@ Item {
184 }
185 }
185 }
186 }
186 Button {
187 Button {
188+ focus: true
187 text: i18n.tr("Yes")
189 text: i18n.tr("Yes")
188 onClicked: {
190 onClicked: {
189 root.closeAllApps();
191 root.closeAllApps();
@@ -202,6 +204,7 @@ Item {
202 title: i18n.ctr("Title: Power off/Restart dialog", "Power")
204 title: i18n.ctr("Title: Power off/Restart dialog", "Power")
203 text: i18n.tr("Are you sure you would like\nto power off?")
205 text: i18n.tr("Are you sure you would like\nto power off?")
204 Button {
206 Button {
207+ focus: true
205 text: i18n.ctr("Button: Power off the system", "Power off")
208 text: i18n.ctr("Button: Power off the system", "Power off")
206 onClicked: {
209 onClicked: {
207 root.closeAllApps();
210 root.closeAllApps();