lock: fix focus on WlSessionLockSurface
This commit is contained in:
parent
4f59bc4ce4
commit
1a78b5808d
1 changed files with 8 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue