From 1a78b5808d49131aa13371235172f31587f4af3f Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 17 Apr 2026 12:49:42 +0200 Subject: [PATCH] lock: fix focus on WlSessionLockSurface --- modules/lock/LockSurface.qml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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