sddm-theme: Focus the password field if enter pressed in the username field

Summary: Currently nothing happens when pressing enter in the username field.

Test Plan:
Entered username, pressed enter.
Now the cursor is in the password field.

Reviewers: #plasma, broulik, davidedmundson

Reviewed By: #plasma, broulik, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D12510
wilder-5.14
Fabian Vogt 8 years ago
parent 19332567dc
commit 1456549026
  1. 2
      sddm-theme/Login.qml

@ -47,6 +47,8 @@ SessionManagementScreen {
visible: showUsernamePrompt
focus: showUsernamePrompt && !lastUserName //if there's a username prompt it gets focus first, otherwise password does
placeholderText: i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Username")
onAccepted: passwordBox.forceActiveFocus()
}
PlasmaComponents.TextField {

Loading…
Cancel
Save