mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
LockScreen: Support entering the password from the physical keyboard, without flicking
Always get the focus, if the password changes, ensure we show what's changing.
This commit is contained in:
parent
04e1cc1d58
commit
9a6e70f5c3
2 changed files with 5 additions and 1 deletions
|
|
@ -114,6 +114,7 @@ Rectangle {
|
|||
password: root.password
|
||||
previewCharIndex: -2
|
||||
pinLabel: qsTr("Enter PIN")
|
||||
onPasswordChanged: keypadRoot.passwordChanged()
|
||||
|
||||
onChangePassword: root.password = password
|
||||
Binding {
|
||||
|
|
|
|||
|
|
@ -278,9 +278,12 @@ PlasmaCore.ColorScope {
|
|||
|
||||
Keypad {
|
||||
id: keypad
|
||||
focus: passwordFlickable.contentY === passwordFlickable.columnHeight
|
||||
focus: true
|
||||
swipeProgress: passwordFlickable.contentY / passwordFlickable.columnHeight
|
||||
Layout.fillWidth: true
|
||||
onPasswordChanged: {
|
||||
passwordFlickable.contentY = passwordFlickable.contentHeight - passwordFlickable.height
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue