on xenial help sign in
Handle tab presses
commit6be84fa5af412844ff5696c7541b355736c0e534 authorJosh Arenson <joshua.arenson@canonical.com> dateWed 3 Aug 2016, 12:53 (10 years ago) parent893b3b7
2 files changed+9−2
qml/Greeter/LoginList.qml+8−1 qml/Greeter/WideView.qml+1−1
qml/Greeter/LoginList.qml+8−1
@@ -102,6 +102,7 @@ StyledItem {
102102 name: "Ubuntu.Components.Themes.Ambiance"
103103 }
104104
105+ KeyNavigation.tab: sessionChooser
105106 Keys.onUpPressed: {
106107 selected(currentIndex - 1);
107108 event.accepted = true;
@@ -255,10 +256,16 @@ StyledItem {
255256 id: badge
256257 anchors.fill: parent
257258 keyColor: "#ffffff" // icon providers give us white icons
258− color: theme.palette.normal.raisedSecondaryText
259+ color: parent.activeFocus ? theme.palette.normal.selection : theme.palette.normal.raisedSecondaryText
259260 source: LightDMService.sessions.iconUrl(root.currentSession)
260261 }
261262
263+ KeyNavigation.tab: passwordInput
264+ Keys.onReturnPressed: {
265+ sessionChooserButtonClicked();
266+ event.accepted = true;
267+ }
268+
262269 onClicked: {
263270 sessionChooserButtonClicked();
264271 }
qml/Greeter/WideView.qml+1−1
@@ -152,7 +152,7 @@ FocusScope {
152152
153153 active: false
154154
155− onLoaded: sessionChooserLoader.item.focus = true;
155+ onLoaded: sessionChooserLoader.item.forceActiveFocus();
156156 Binding {
157157 target: sessionChooserLoader.item
158158 property: "initiallySelectedSession"