mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
add --no-repeat option for bindings
This allows e.g. triggering one command while a key is held, then triggering another to undo the change performed by it afterwards. One use case for this is triggering push-to-talk functionality for VoIP tools without granting them full access to all input events. Fixes #3151
This commit is contained in:
parent
5e41e6600b
commit
df48c48123
4 changed files with 10 additions and 2 deletions
|
|
@ -41,6 +41,7 @@ enum binding_flags {
|
|||
BINDING_CODE=32, // keyboard only; convert keysyms into keycodes
|
||||
BINDING_RELOAD=64, // switch only; (re)trigger binding on reload
|
||||
BINDING_INHIBITED=128, // keyboard only: ignore shortcut inhibitor
|
||||
BINDING_NOREPEAT=256, // keyboard only; do not trigger when repeating a held key
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue