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
|
// 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue