From b4b8b2403c43886edf887e76948b770b72471cd0 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sun, 10 Oct 2021 12:44:27 -0600 Subject: Added ability to send extended codes for unicode characters. --- input-keys.c | 4 ++-- 1 file 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); -- cgit