aboutsummaryrefslogtreecommitdiff
path: root/key-bindings.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-04-20 06:35:54 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-04-20 06:35:54 +0100
commit88575a27e2e847dbb97e44780ebe0e415f6a4ba5 (patch)
treec18757760f0a1d4568b3890613849321827a0897 /key-bindings.c
parent3a892228f45f744982fba827266cdf115db4464b (diff)
downloadrtmux-88575a27e2e847dbb97e44780ebe0e415f6a4ba5.tar.gz
rtmux-88575a27e2e847dbb97e44780ebe0e415f6a4ba5.tar.bz2
rtmux-88575a27e2e847dbb97e44780ebe0e415f6a4ba5.zip
Add another couple of keys needed for extended keys, GitHub issue 2658.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/key-bindings.c b/key-bindings.c
index b47f6ff7..467c7f93 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -215,6 +215,9 @@ key_bindings_add(const char *name, key_code key, const char *note, int repeat,
if (repeat)
bd->flags |= KEY_BINDING_REPEAT;
bd->cmdlist = cmdlist;
+
+ log_debug("%s: %#llx %s = %s", __func__, bd->key,
+ key_string_lookup_key(bd->key, 1), cmd_list_print(bd->cmdlist, 0));
}
void
@@ -231,6 +234,9 @@ key_bindings_remove(const char *name, key_code key)
if (bd == NULL)
return;
+ log_debug("%s: %#llx %s", __func__, bd->key,
+ key_string_lookup_key(bd->key, 1));
+
RB_REMOVE(key_bindings, &table->key_bindings, bd);
key_bindings_free(bd);