From c364a7142c10af9a82b0ef19a3ef204b605a225d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 15 May 2020 17:40:24 +0100 Subject: 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. --- input-keys.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'input-keys.c') 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) { -- cgit