From 41f869d38df1edb6dc23e0ac233de2336645c350 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 27 Jan 2023 23:26:31 +0000 Subject: Remove and killswitch --- input-keys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'input-keys.c') diff --git a/input-keys.c b/input-keys.c index 318885b2..31563c52 100644 --- a/input-keys.c +++ b/input-keys.c @@ -506,7 +506,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) && 0) { + if (~s->mode & MODE_KEXTENDED) { if ((key & KEYC_MASK_MODIFIERS) != KEYC_CTRL) goto missing; justkey = (key & KEYC_MASK_KEY); @@ -541,6 +541,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) } outkey = (key & KEYC_MASK_KEY); modifiers = (key & KEYC_MASK_MODIFIERS); + if (outkey < 32 && outkey != 9 && outkey != 13 && outkey != 27) { outkey = 64 + outkey; modifiers |= KEYC_CTRL; -- cgit