[plasma-workspace/Plasma/5.2] lookandfeel/contents/lockscreen: Workaround the lockscreen password field focus issue

Bhushan Shah bhush94 at gmail.com
Wed Mar 25 15:58:06 UTC 2015


Git commit 24f24e03793c8214a5d1f3414a5aeb48eccef4f4 by Bhushan Shah.
Committed on 25/03/2015 at 15:55.
Pushed by bshah into branch 'Plasma/5.2'.

Workaround the lockscreen password field focus issue

Fixes bug 344823
Backport of a476e1b6bf6f683bd74000bb30076868c9f92371 in 5.2

CCMAIL: release-team at kde.org

M  +8    -0    lookandfeel/contents/lockscreen/LockScreen.qml

http://commits.kde.org/plasma-workspace/24f24e03793c8214a5d1f3414a5aeb48eccef4f4

diff --git a/lookandfeel/contents/lockscreen/LockScreen.qml b/lookandfeel/contents/lockscreen/LockScreen.qml
index 8b01322..ab554bd 100644
--- a/lookandfeel/contents/lockscreen/LockScreen.qml
+++ b/lookandfeel/contents/lockscreen/LockScreen.qml
@@ -156,6 +156,14 @@ Image {
                             enabled: !authenticator.graceLocked
                             onAccepted: unlockFunction()
                             focus: true
+                            //HACK: Similar hack is needed in sddm loginscreen
+                            //TODO: investigate
+                            Timer {
+                                interval: 200
+                                running: true
+                                repeat: false
+                                onTriggered: passwordInput.forceActiveFocus()
+                            }
                             visible: block.mainItem.model.get(block.mainItem.selectedIndex)["showPassword"]
                             onVisibleChanged: {
                                 if (visible) {


More information about the release-team mailing list