diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2021-10-10 12:44:27 -0600 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2021-10-10 12:44:27 -0600 |
commit | b4b8b2403c43886edf887e76948b770b72471cd0 (patch) | |
tree | 9538804d814b4b8065ef87256b0a8270f03d3904 | |
parent | 7ca863c5af3dbbb78d45bec5b113a69f983f2fdc (diff) | |
download | rtmux-b4b8b2403c43886edf887e76948b770b72471cd0.tar.gz rtmux-b4b8b2403c43886edf887e76948b770b72471cd0.tar.bz2 rtmux-b4b8b2403c43886edf887e76948b770b72471cd0.zip |
Added ability to send extended codes for unicode characters.
-rw-r--r-- | input-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input-keys.c b/input-keys.c index b4770808..100ec6d7 100644 --- a/input-keys.c +++ b/input-keys.c @@ -452,7 +452,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) input_key_write(__func__, bev, &ud.data[0], 1); return (0); } - if (KEYC_IS_UNICODE(justkey)) { + if (KEYC_IS_UNICODE(justkey) && !(key & KEYC_CTRL)) { if (key & KEYC_META) input_key_write(__func__, bev, "\033", 1); utf8_to_data(justkey, &ud); @@ -484,7 +484,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) } /* No builtin key sequence; construct an extended key sequence. */ - if (~s->mode & MODE_KEXTENDED) { + if ((~s->mode & MODE_KEXTENDED) && 0) { if ((key & KEYC_MASK_MODIFIERS) != KEYC_CTRL) goto missing; justkey = (key & KEYC_MASK_KEY); |