summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 17:40:24 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-15 17:40:24 +0100
commitc364a7142c10af9a82b0ef19a3ef204b605a225d (patch)
tree45e7c1dc54f4e6ea894bede5dfaecaad89bd26fd /input-keys.c
parent3a4f3ee087ab5273e5d49ab33abf9135c3a21636 (diff)
Only forward extended keys if the application has requested them, even though
we use the CSI u sequence and xterm uses CSI 27 ~ - this is what mintty does as well.
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) {