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.

commit3222ff6ed913157cf8ed61142e8d0c76c31a5e38 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 20 Dec 2016, 09:55 (10 years ago) parente98308e
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();