aboutsummaryrefslogtreecommitdiff
path: root/input-keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c3
1 files changed, 2 insertions, 1 deletions
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;