Bug ID 980201
Summary Opensuse sddm theme always selects password textfield
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component KDE Workspace (Plasma)
Assignee opensuse-kde-bugs@opensuse.org
Reporter luizluca@tre-sc.jus.br
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Hello,

When loginPrompt.showUserList is false (a login textfield is shown), sddm theme
always selects the password field. This is annoying for the first login or when
the last user login is not saved.

This affects all distributions that uses sddm (42.1, tumbleweed)

I changed the UserPasswordPrompt component to conditionally focus one or other
component.

--- /usr/share/sddm/themes/breeze/components/UserPasswordPrompt.qml    
2016-03-27 14:06:41.000000000 -0300
+++ /usr/share/sddm/themes/breeze/components/UserPasswordPrompt.qml     
2016-05-16 16:38:47.349625894 -0300
@@ -38,7 +38,7 @@
             Timer {
                 interval: 200
                 running: parent.visible
-                onTriggered: passwordInput.forceActiveFocus()
+                onTriggered: userModel.lastUser && (userModel.lastUser.length
!= 0) ? passwordInput.forceActiveFocus() : usernameInput.forceActiveFocus()
             }
             //end hack

This seems to work ;-)


You are receiving this mail because: