autofocus password on lockscreen

This commit is contained in:
Henry Hiles 2026-11-18 00:41:46 -05:00
commit ab8a5b9a3a
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -53,6 +53,14 @@ WlSessionLockSurface {
} }
} }
Connections {
target: shade
function onSheetShownChanged() {
if (!shade.sheetShown) input.forceActiveFocus();
}
}
ColumnLayout { ColumnLayout {
id: info id: info
enabled: !shade.sheetShown enabled: !shade.sheetShown
@ -117,6 +125,7 @@ WlSessionLockSurface {
leftMargin: 20 leftMargin: 20
rightMargin: 8 rightMargin: 8
} }
focus: true
readOnly: surface.lock.checking readOnly: surface.lock.checking
echoMode: TextInput.Password echoMode: TextInput.Password
passwordCharacter: "•" passwordCharacter: "•"