If the application has not requested extended keys, then C-1 sends 1 not

nothing.
This commit is contained in:
Nicholas Marriott 2020-05-16 07:39:22 +01:00
parent 740f047a85
commit 53c84fd4aa

View File

@ -496,8 +496,12 @@ 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) {
if ((key & KEYC_MASK_MODIFIERS) == KEYC_CTRL &&
(key & KEYC_MASK_KEY) < KEYC_BASE)
return (input_key(s, bev, key & ~KEYC_CTRL));
goto missing;
}
outkey = (key & KEYC_MASK_KEY);
switch (key & KEYC_MASK_MODIFIERS) {
case KEYC_SHIFT: