diff options
author | Linus Heckemann <git@sphalerite.org> | 2020-03-23 12:34:04 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-03-30 14:18:27 +0200 |
commit | df48c48123de88a91362844881fa20eddc30f597 (patch) | |
tree | 307ec481503f0090519565dbf2c22b14e66ab5c0 /include | |
parent | Change focus_on_window_activation default to urgent (diff) | |
download | sway-df48c48123de88a91362844881fa20eddc30f597.tar.gz sway-df48c48123de88a91362844881fa20eddc30f597.tar.zst sway-df48c48123de88a91362844881fa20eddc30f597.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 359f9604..94ce6214 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -41,6 +41,7 @@ enum binding_flags { | |||
41 | BINDING_CODE=32, // keyboard only; convert keysyms into keycodes | 41 | BINDING_CODE=32, // keyboard only; convert keysyms into keycodes |
42 | BINDING_RELOAD=64, // switch only; (re)trigger binding on reload | 42 | BINDING_RELOAD=64, // switch only; (re)trigger binding on reload |
43 | BINDING_INHIBITED=128, // keyboard only: ignore shortcut inhibitor | 43 | BINDING_INHIBITED=128, // keyboard only: ignore shortcut inhibitor |
44 | BINDING_NOREPEAT=256, // keyboard only; do not trigger when repeating a held key | ||
44 | }; | 45 | }; |
45 | 46 | ||
46 | /** | 47 | /** |