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 // Keyboard input - focus lives on an Item since WlSessionLockSurface is a window
focus: true Item {
Keys.onPressed: event => { anchors.fill: parent
if (!_unlocking) focus: true
root.auth.handleKey(event); Keys.onPressed: event => {
if (!root._unlocking)
root.auth.handleKey(event);
}
} }
// Unlock animation // Unlock animation