aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-04-28 20:20:53 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-04-28 20:20:53 +0100
commit32c97a7f2f12a6689b8ffc5596484860ac8fbbec (patch)
tree79957ec03130bc7e7e0465bb9bacb2a4bd993d4b
parente2d01795d2501f6097bb13129995a6d0a86af419 (diff)
downloadrtmux-32c97a7f2f12a6689b8ffc5596484860ac8fbbec.tar.gz
rtmux-32c97a7f2f12a6689b8ffc5596484860ac8fbbec.tar.bz2
rtmux-32c97a7f2f12a6689b8ffc5596484860ac8fbbec.zip
Ctrl keys are < 0x7f, not Unicode.
-rw-r--r--key-string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/key-string.c b/key-string.c
index b41eaa73..406d26dd 100644
--- a/key-string.c
+++ b/key-string.c
@@ -238,7 +238,7 @@ key_string_lookup_string(const char *string)
}
/* Convert the standard control keys. */
- if (KEYC_IS_UNICODE(key) &&
+ if (key <= 127 &&
(modifiers & KEYC_CTRL) &&
strchr(other, key) == NULL &&
key != 9 &&