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-06-10 09:22:13 +0100
commitad2f7642f2795fc1073c02cfa6348e48dfdfc45d (patch)
tree755e0768ae8b276deaa07ca38b843df4e4158840
parent059580e0f72ebeb0538d0ef54808dae277388bf9 (diff)
downloadrtmux-ad2f7642f2795fc1073c02cfa6348e48dfdfc45d.tar.gz
rtmux-ad2f7642f2795fc1073c02cfa6348e48dfdfc45d.tar.bz2
rtmux-ad2f7642f2795fc1073c02cfa6348e48dfdfc45d.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 &&