mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 10:14:45 +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
|
password: root.password
|
||||||
previewCharIndex: -2
|
previewCharIndex: -2
|
||||||
pinLabel: qsTr("Enter PIN")
|
pinLabel: qsTr("Enter PIN")
|
||||||
|
onPasswordChanged: keypadRoot.passwordChanged()
|
||||||
|
|
||||||
onChangePassword: root.password = password
|
onChangePassword: root.password = password
|
||||||
Binding {
|
Binding {
|
||||||
|
|
|
||||||
|
|
@ -278,9 +278,12 @@ PlasmaCore.ColorScope {
|
||||||
|
|
||||||
Keypad {
|
Keypad {
|
||||||
id: keypad
|
id: keypad
|
||||||
focus: passwordFlickable.contentY === passwordFlickable.columnHeight
|
focus: true
|
||||||
swipeProgress: passwordFlickable.contentY / passwordFlickable.columnHeight
|
swipeProgress: passwordFlickable.contentY / passwordFlickable.columnHeight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
onPasswordChanged: {
|
||||||
|
passwordFlickable.contentY = passwordFlickable.contentHeight - passwordFlickable.height
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue