on xenial help sign in
Make sure that greeter prompt buttons are in focus chain too
commit65bfae31a361dc0b0285a0239c2d70697a6cf51f authorMichael Terry <mike@mterry.name> dateThu 19 Jan 2017, 10:02 (10 years ago) parentc9a7716
2 files changed+8
qml/Greeter/GreeterPrompt.qml+2 tests/mocks/liblightdm/MockGreeter.cpp+6
qml/Greeter/GreeterPrompt.qml+2
@@ -79,6 +79,7 @@ FocusScope {
7979 objectName: "promptButton"
8080 anchors.fill: parent
8181 visible: !root.isPrompt
82+ activeFocusOnTab: true
8283
8384 styleName: "FocusShape"
8485
@@ -98,6 +99,7 @@ FocusScope {
9899 }
99100 }
100101
102+ Keys.onSpacePressed: triggered();
101103 Keys.onReturnPressed: triggered();
102104 Keys.onEnterPressed: triggered();
103105 MouseArea {
tests/mocks/liblightdm/MockGreeter.cpp+6
@@ -147,6 +147,12 @@ void Greeter::handleAuthenticate()
147147{
148148 Q_D(Greeter);
149149
150+ if (d->authenticated) {
151+ // This can happen from the guest authentication flow
152+ Q_EMIT authenticationComplete();
153+ return;
154+ }
155+
150156 if (d->authenticationUser.isEmpty()) {
151157 Q_EMIT showPrompt("Username: ", Greeter::PromptTypeQuestion);
152158 return;