summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2021-06-10 07:38:28 +0000
committernicm <nicm>2021-06-10 07:38:28 +0000
commitf02a6c34e0e8bf2c50ee1dfe9cfacf54370a1405 (patch)
treee6feaf318a3434b1fdf46b4dd5ee50f4b3f70c72 /input-keys.c
parentf9f97c8145e97b0295f0792a643286126fe2d3f8 (diff)
Move "special" keys into the Unicode PUA rather than making them top bit
set, some compilers do not allow enums that are larger than int. GitHub issue 2673.
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input-keys.c b/input-keys.c
index ab7d2212..b975c1ed 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -477,7 +477,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);