summaryrefslogtreecommitdiffstats
path: root/key-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-24 14:57:22 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-24 14:57:22 +0000
commit1d1ea681f0b132b1dd60fc5f640a4420c76bca32 (patch)
treea633984d8a88db44ea6596382a2a37e95c9bfb49 /key-string.c
parent5a1a1066371328f9d53a9bc5e5c4c53acb26c2b2 (diff)
Accept lowercase c- and m- prefix as well as C- and M-.
Diffstat (limited to 'key-string.c')
-rw-r--r--key-string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/key-string.c b/key-string.c
index d70fe69b..23aa6ad7 100644
--- a/key-string.c
+++ b/key-string.c
@@ -108,7 +108,7 @@ key_string_lookup_string(const char *string)
return (string[0]);
ptr = NULL;
- if (string[0] == 'C' && string[1] == '-')
+ if ((string[0] == 'C' || string[0] == 'c') && string[1] == '-')
ptr = string + 2;
else if (string[0] == '^')
ptr = string + 1;
@@ -129,8 +129,8 @@ key_string_lookup_string(const char *string)
return (key | KEYC_CTRL);
return (KEYC_NONE);
}
-
- if (string[0] == 'M' && string[1] == '-') {
+
+ if ((string[0] == 'M' || string[0] == 'm') && string[1] == '-') {
ptr = string + 2;
if (ptr[0] == '\0')
return (KEYC_NONE);