config: value_to_key_combos(): reset modifiers in binding

This commit is contained in:
Daniel Eklöf 2021-12-05 15:51:52 +01:00
parent e67639a682
commit bb4b4ae43d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;