diff --git a/lookandfeel/contents/lockscreen/LockScreenUi.qml b/lookandfeel/contents/lockscreen/LockScreenUi.qml index 70d2e3abb..f3cc81c7e 100644 --- a/lookandfeel/contents/lockscreen/LockScreenUi.qml +++ b/lookandfeel/contents/lockscreen/LockScreenUi.qml @@ -211,6 +211,7 @@ PlasmaCore.ColorScope { initialItem: MainBlock { id: mainBlock + lockScreenUiVisible: lockScreenRoot.uiVisible showUserList: userList.y + mainStack.y > 0 diff --git a/lookandfeel/contents/lockscreen/MainBlock.qml b/lookandfeel/contents/lockscreen/MainBlock.qml index 9124c739d..97e7e9433 100644 --- a/lookandfeel/contents/lockscreen/MainBlock.qml +++ b/lookandfeel/contents/lockscreen/MainBlock.qml @@ -30,6 +30,7 @@ import "../components" SessionManagementScreen { property Item mainPasswordBox: passwordBox + property bool lockScreenUiVisible: false //the y position that should be ensured visible when the on screen keyboard is visible property int visibleBoundary: mapFromItem(loginButton, 0, 0).y @@ -61,7 +62,11 @@ SessionManagementScreen { enabled: !authenticator.graceLocked revealPasswordButtonShown: true - onAccepted: startLogin() + onAccepted: { + if (lockScreenUiVisible) { + startLogin(); + } + } //if empty and left or right is pressed change selection in user switch //this cannot be in keys.onLeftPressed as then it doesn't reach the password box