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