From 1456549026633384747805c975511a4517a96e41 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Wed, 25 Apr 2018 09:06:17 +0200 Subject: [PATCH] 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 --- sddm-theme/Login.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sddm-theme/Login.qml b/sddm-theme/Login.qml index 5ea0711d1..3bce1f16c 100644 --- a/sddm-theme/Login.qml +++ b/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 {