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 /cmd-send-keys.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 'cmd-send-keys.c')
-rw-r--r-- | cmd-send-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c index 27ca8a63..a9ecc807 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -71,13 +71,13 @@ cmd_send_keys_inject_key(struct cmdq_item *item, struct cmdq_item *after, wme = TAILQ_FIRST(&wp->modes); if (wme == NULL || wme->mode->key_table == NULL) { - if (window_pane_key(wp, tc, s, wl, key|KEYC_XTERM, NULL) != 0) + if (window_pane_key(wp, tc, s, wl, key, NULL) != 0) return (NULL); return (item); } table = key_bindings_get_table(wme->mode->key_table(wme), 1); - bd = key_bindings_get(table, key & ~KEYC_XTERM); + bd = key_bindings_get(table, key & ~KEYC_MASK_FLAGS); if (bd != NULL) { table->references++; after = key_bindings_dispatch(bd, after, tc, NULL, target); |