on xenial help sign in
Give focus to one of the buttons of the dialog

This one you can use Tab/Alt+Tab to navigate through them. Unfortunately there's still the problem that if there's some other elements that take focus (like indicators), focus will also travel through them, but this is an start. Approved by: Daniel d'Andrada, Unity8 CI Bot

commit3881c977220995499884c68956c18ac8fdd07e8c authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 10 Jan 2017, 14:44 (10 years ago) parent521240dabeac4e
1 file changed+3
qml/Components/Dialogs.qml+3
qml/Components/Dialogs.qml+3
@@ -156,6 +156,7 @@ Item {
156156 }
157157 }
158158 Button {
159+ focus: true
159160 text: i18n.ctr("Button: Log out from the system", "Log Out")
160161 onClicked: {
161162 unitySessionService.logout();
@@ -184,6 +185,7 @@ Item {
184185 }
185186 }
186187 Button {
188+ focus: true
187189 text: i18n.tr("Yes")
188190 onClicked: {
189191 root.closeAllApps();
@@ -202,6 +204,7 @@ Item {
202204 title: i18n.ctr("Title: Power off/Restart dialog", "Power")
203205 text: i18n.tr("Are you sure you would like\nto power off?")
204206 Button {
207+ focus: true
205208 text: i18n.ctr("Button: Power off the system", "Power off")
206209 onClicked: {
207210 root.closeAllApps();