diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 13:15:12 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-05-15 13:15:12 +0100 |
commit | 3e60ab1cafaa00859bdb797918424910f374dee9 (patch) | |
tree | 6a102f70790e60b85ca27f8cfe796e66d8dfdcbc | |
parent | 7501e297dd5c68e7f2014109f3f7f7424bb455d6 (diff) | |
download | rtmux-3e60ab1cafaa00859bdb797918424910f374dee9.tar.gz rtmux-3e60ab1cafaa00859bdb797918424910f374dee9.tar.bz2 rtmux-3e60ab1cafaa00859bdb797918424910f374dee9.zip |
Send conventional \033 sequences for keys with just Meta even if they came in
as an extended CSI u key sequence. It is much more useful for applications that
don't understand CSI u to receive \033> for M-S-. rather than \033[62;3u.
-rw-r--r-- | input-keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c index e66b2f7e..611592b4 100644 --- a/input-keys.c +++ b/input-keys.c @@ -459,7 +459,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) * If this is a normal 7-bit key, just send it, with a leading escape * if necessary. If it is a UTF-8 key, split it and send it. */ - justkey = (key & ~KEYC_META); + justkey = (key & ~(KEYC_META|KEYC_IMPLIED_META)); if (justkey <= 0x7f) { if (key & KEYC_META) bufferevent_write(bev, "\033", 1); |