aboutsummaryrefslogtreecommitdiff
path: root/input-keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input-keys.c b/input-keys.c
index b7c02ccd..07f102b8 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -496,6 +496,8 @@ 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)
+ goto missing;
outkey = (key & KEYC_MASK_KEY);
if (outkey >= KEYC_BASE) {
switch (outkey) {