diff options
author | nicm <nicm> | 2020-05-16 16:35:13 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-16 16:35:13 +0000 |
commit | 292b335ca5b594729cf9ff79f0f4273c725537a4 (patch) | |
tree | 0eec72b4ead11b18a656536d517ca119e89c9dea /cmd-send-keys.c | |
parent | e2a26740b9880d0066c8a04ca2d7202e7f99bd07 (diff) | |
download | rtmux-292b335ca5b594729cf9ff79f0f4273c725537a4.tar.gz rtmux-292b335ca5b594729cf9ff79f0f4273c725537a4.tar.bz2 rtmux-292b335ca5b594729cf9ff79f0f4273c725537a4.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, 1 insertions, 3 deletions
diff --git a/cmd-send-keys.c b/cmd-send-keys.c index afaf0a81..a9ecc807 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -71,15 +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 (options_get_number(wp->window->options, "xterm-keys")) - key |= KEYC_XTERM; 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); |