diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 12:16:41 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 12:16:41 +0100 |
commit | 340fd691cbd6f575fc1169269dfa675f30ce71d3 (patch) | |
tree | 15d3aa92656e6fe413bd2e74b47c9ebb20edafb1 /window-customize.c | |
parent | 031d4864a94cd7c042fe96a2d236bccde83655e7 (diff) | |
download | rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.tar.gz rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.tar.bz2 rtmux-340fd691cbd6f575fc1169269dfa675f30ce71d3.zip |
Separate key flags and modifiers, log key flags, make the "xterm" flag more
explicit and fix M- keys with a leading escape.
Diffstat (limited to 'window-customize.c')
-rw-r--r-- | window-customize.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/window-customize.c b/window-customize.c index 12c09cf6..5130357f 100644 --- a/window-customize.c +++ b/window-customize.c @@ -460,7 +460,7 @@ window_customize_build_keys(struct window_customize_modedata *data, bd = key_bindings_first(kt); while (bd != NULL) { - format_add(ft, "key", "%s", key_string_lookup_key(bd->key)); + format_add(ft, "key", "%s", key_string_lookup_key(bd->key, 0)); if (bd->note != NULL) format_add(ft, "key_note", "%s", bd->note); if (filter != NULL) { @@ -1233,7 +1233,7 @@ window_customize_set_key(struct client *c, if (strcmp(s, "Repeat") == 0) bd->flags ^= KEY_BINDING_REPEAT; else if (strcmp(s, "Command") == 0) { - xasprintf(&prompt, "(%s) ", key_string_lookup_key(key)); + xasprintf(&prompt, "(%s) ", key_string_lookup_key(key, 0)); value = cmd_list_print(bd->cmdlist, 0); new_item = xcalloc(1, sizeof *new_item); @@ -1250,7 +1250,7 @@ window_customize_set_key(struct client *c, free(prompt); free(value); } else if (strcmp(s, "Note") == 0) { - xasprintf(&prompt, "(%s) ", key_string_lookup_key(key)); + xasprintf(&prompt, "(%s) ", key_string_lookup_key(key, 0)); new_item = xcalloc(1, sizeof *new_item); new_item->data = data; @@ -1395,7 +1395,7 @@ window_customize_key(struct window_mode_entry *wme, struct client *c, break; if (item->scope == WINDOW_CUSTOMIZE_KEY) { xasprintf(&prompt, "Unbind key %s? ", - key_string_lookup_key(item->key)); + key_string_lookup_key(item->key, 0)); } else xasprintf(&prompt, "Unset option %s? ", item->name); data->references++; |