aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-12-05 14:51:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-12-11 19:19:11 +0000
commitbb4b4ae43d64e9d51e01cfd5c983684ec1bfe381 (patch)
tree34b1515a584be0863204f26f1b335ad90f153a8b /config.c
parentmain: ignore SIGPIPE (diff)
config: value_to_key_combos(): reset modifiers in binding
Diffstat (limited to 'config.c')
-rw-r--r--config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.c b/config.c
index e82385a7..e1d9e0fc 100644
--- a/config.c
+++ b/config.c
@@ -1661,6 +1661,7 @@ value_to_key_combos(struct context *ctx, int action, struct argv *argv,
if (key == NULL) {
/* No modifiers */
key = combo;
+ new_combo->modifiers = (struct config_key_modifiers){0};
} else {
if (!parse_modifiers(ctx, combo, key - combo, &new_combo->modifiers))
goto err;