lock: fix focus on WlSessionLockSurface

This commit is contained in:
Damocles 2026-04-17 12:49:42 +02:00
parent 4f59bc4ce4
commit 1a78b5808d

View file

@ -139,11 +139,14 @@ WlSessionLockSurface {
}
}
// Keyboard input
focus: true
Keys.onPressed: event => {
if (!_unlocking)
root.auth.handleKey(event);
// Keyboard input - focus lives on an Item since WlSessionLockSurface is a window
Item {
anchors.fill: parent
focus: true
Keys.onPressed: event => {
if (!root._unlocking)
root.auth.handleKey(event);
}
}
// Unlock animation