Merge remote-tracking branch 'origin/Plasma/5.14'

wilder-broken-krunner
Thomas Surrel 8 years ago
commit 9eb9dc1b81
  1. 1
      lookandfeel/contents/lockscreen/LockScreenUi.qml
  2. 7
      lookandfeel/contents/lockscreen/MainBlock.qml

@ -211,6 +211,7 @@ PlasmaCore.ColorScope {
initialItem: MainBlock {
id: mainBlock
lockScreenUiVisible: lockScreenRoot.uiVisible
showUserList: userList.y + mainStack.y > 0

@ -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

Loading…
Cancel
Save