on xenial help sign in
Restore focus to pw input after switching back from sessions list
50b5e9dJosh Arenson
qml/Greeter/LoginList.qml+1
@@ -30,6 +30,7 @@ StyledItem {
30 property bool locked
30 property bool locked
31 property bool waiting
31 property bool waiting
32
32
33+ readonly property alias passwordInput: passwordInput
33 readonly property int numAboveBelow: 4
34 readonly property int numAboveBelow: 4
34 readonly property int cellHeight: units.gu(5)
35 readonly property int cellHeight: units.gu(5)
35 readonly property int highlightedHeight: units.gu(15)
36 readonly property int highlightedHeight: units.gu(15)
qml/Greeter/WideView.qml+4−1
@@ -162,7 +162,10 @@ FocusScope {
162 Connections {
162 Connections {
163 target: sessionChooserLoader.item
163 target: sessionChooserLoader.item
164 onSessionSelected: loginList.currentSession = sessionKey
164 onSessionSelected: loginList.currentSession = sessionKey
165+ onShowLoginList: {
165− onShowLoginList: coverPage.state = "LoginList"
166+ coverPage.state = "LoginList"
167+ loginList.passwordInput.forceActiveFocus();
168+ }
166 ignoreUnknownSignals: true
169 ignoreUnknownSignals: true
167 }
170 }
168 }
171 }