mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Separate key flags and modifiers, log key flags, make the "xterm" flag
more explicit and fix M- keys with a leading escape.
This commit is contained in:
@ -190,7 +190,7 @@ key_bindings_add(const char *name, key_code key, const char *note, int repeat,
|
||||
|
||||
table = key_bindings_get_table(name, 1);
|
||||
|
||||
bd = key_bindings_get(table, key & ~KEYC_XTERM);
|
||||
bd = key_bindings_get(table, key & ~KEYC_MASK_FLAGS);
|
||||
if (bd != NULL) {
|
||||
RB_REMOVE(key_bindings, &table->key_bindings, bd);
|
||||
key_bindings_free(bd);
|
||||
@ -217,7 +217,7 @@ key_bindings_remove(const char *name, key_code key)
|
||||
if (table == NULL)
|
||||
return;
|
||||
|
||||
bd = key_bindings_get(table, key & ~KEYC_XTERM);
|
||||
bd = key_bindings_get(table, key & ~KEYC_MASK_FLAGS);
|
||||
if (bd == NULL)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user