mirror of
https://github.com/swaywm/sway.git
synced 2025-11-26 06:59:59 -05: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
|
|
@ -373,6 +373,8 @@ static struct cmd_results *cmd_bindsym_or_bindcode(int argc, char **argv,
|
|||
binding->input = strdup(argv[0] + strlen("--input-device="));
|
||||
} else if (strcmp("--no-warn", argv[0]) == 0) {
|
||||
warn = false;
|
||||
} else if (strcmp("--no-repeat", argv[0]) == 0) {
|
||||
binding->flags |= BINDING_NOREPEAT;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue