keybind: implement allowWhenLocked

fixes #2034

see bc258a3be2/sway/sway.5.scd (L409)
This commit is contained in:
Tobias Bengfort 2024-08-02 14:08:19 +02:00
parent 12bbc82d1b
commit 9aabf52736
4 changed files with 21 additions and 16 deletions

View file

@ -495,7 +495,7 @@ extending outward from the snapped edge.
Stores the keyboard layout either globally or per window and restores
it when switching back to the window. Default is global.
*<keyboard><keybind key="" layoutDependent="" onRelease="">*
*<keyboard><keybind key="" layoutDependent="" onRelease="" allowWhenLocked="">*
Define a *key* binding in the format *modifier-key*, where supported
modifiers are:
- S (shift)
@ -537,6 +537,9 @@ extending outward from the snapped edge.
</keybind>
```
*allowWhenLocked* [yes|no]
Make this keybind work even if the screen is locked. Default is no.
*<keyboard><keybind key=""><action name="">*
Keybind action. See labwc-actions(5).