diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml index 85624a1..daa4b3c 100644 --- a/modules/lock/LockSurface.qml +++ b/modules/lock/LockSurface.qml @@ -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