Bug 454707

Summary: Passwordless screen unlock page doesn't press the button on enter/return by default
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: Theme - BreezeAssignee: Nate Graham <nate>
Status: RESOLVED FIXED    
Severity: normal CC: kde, visual-design
Priority: NOR Keywords: usability
Version First Reported In: 5.24.90   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.25
Sentry Crash Report:

Description Nate Graham 2022-06-01 13:28:15 UTC
When the passwordless unlock screen with an "Unlock" button is shown, you can't press the button by immediately hitting the Enter or Return key. You need to first focus it by hitting the Tab key twice, and only then can you press it using the keyboard.
Comment 1 Bug Janitor Service 2022-06-01 15:22:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1794
Comment 2 Nate Graham 2022-06-01 22:22:01 UTC
Git commit 370976d71582c4d057147dd6f123acc4bcf5d010 by Nate Graham.
Committed on 01/06/2022 at 22:21.
Pushed by ngraham into branch 'master'.

NoPaswordUnlock screen: focus it by default

Otherwise the user needs to manually tab over to the Unlock button
first, which is annoying. And they may not even think to do it at all.

The `forceActiveFocus()` is because the stack view does not manually pass focus
to the item you push onto it; this needs to be handled manually.

M  +4    -0    lookandfeel/contents/lockscreen/NoPasswordUnlock.qml

https://invent.kde.org/plasma/plasma-workspace/commit/370976d71582c4d057147dd6f123acc4bcf5d010
Comment 3 Nate Graham 2022-06-01 22:22:50 UTC
Git commit 5abd36ffa6ef093501cea6978d1c34ddbcb9256f by Nate Graham.
Committed on 01/06/2022 at 22:22.
Pushed by ngraham into branch 'Plasma/5.25'.

NoPaswordUnlock screen: focus it by default

Otherwise the user needs to manually tab over to the Unlock button
first, which is annoying. And they may not even think to do it at all.

The `forceActiveFocus()` is because the stack view does not manually pass focus
to the item you push onto it; this needs to be handled manually.


(cherry picked from commit 370976d71582c4d057147dd6f123acc4bcf5d010)

M  +4    -0    lookandfeel/contents/lockscreen/NoPasswordUnlock.qml

https://invent.kde.org/plasma/plasma-workspace/commit/5abd36ffa6ef093501cea6978d1c34ddbcb9256f