summaryrefslogtreecommitdiffstats
path: root/key-bindings.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-20 07:11:45 +0000
committernicm <nicm>2020-05-20 07:11:45 +0000
commit6bde1c183766d0637633c1460cf6b17b57bc0280 (patch)
tree9d636cad10019e01bbacc1335c91573fc28e8b0e /key-bindings.c
parentb53e60f4c6d1e16dab996a58bb3ebd14691c2922 (diff)
Fix a couple more places where the key flags need to be masked off.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/key-bindings.c b/key-bindings.c
index 59cfbb0d..a518fbd8 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -197,7 +197,7 @@ key_bindings_add(const char *name, key_code key, const char *note, int repeat,
}
bd = xcalloc(1, sizeof *bd);
- bd->key = key;
+ bd->key = (key & ~KEYC_MASK_FLAGS);
if (note != NULL)
bd->note = xstrdup(note);
RB_INSERT(key_bindings, &table->key_bindings, bd);