From 059580e0f72ebeb0538d0ef54808dae277388bf9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 28 Apr 2021 09:18:04 +0100 Subject: Move "special" keys into the Unicode PUA rather than making them high a top bit set, some compilers cannot handle enums that are larger than int. GitHub issue 2673. --- input-keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input-keys.c') diff --git a/input-keys.c b/input-keys.c index a3252855..ffd2201c 100644 --- a/input-keys.c +++ b/input-keys.c @@ -476,7 +476,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) input_key_write(__func__, bev, &ud.data[0], 1); return (0); } - if (justkey > 0x7f && justkey < KEYC_BASE) { + if (KEYC_IS_UNICODE(justkey)) { if (key & KEYC_META) input_key_write(__func__, bev, "\033", 1); utf8_to_data(justkey, &ud); -- cgit