Accept lowercase c- and m- prefix as well as C- and M-.

This commit is contained in:
Nicholas Marriott 2009-07-24 14:57:22 +00:00
parent 5a1a106637
commit 1d1ea681f0

View File

@ -108,7 +108,7 @@ key_string_lookup_string(const char *string)
return (string[0]); return (string[0]);
ptr = NULL; ptr = NULL;
if (string[0] == 'C' && string[1] == '-') if ((string[0] == 'C' || string[0] == 'c') && string[1] == '-')
ptr = string + 2; ptr = string + 2;
else if (string[0] == '^') else if (string[0] == '^')
ptr = string + 1; ptr = string + 1;
@ -130,7 +130,7 @@ key_string_lookup_string(const char *string)
return (KEYC_NONE); return (KEYC_NONE);
} }
if (string[0] == 'M' && string[1] == '-') { if ((string[0] == 'M' || string[0] == 'm') && string[1] == '-') {
ptr = string + 2; ptr = string + 2;
if (ptr[0] == '\0') if (ptr[0] == '\0')
return (KEYC_NONE); return (KEYC_NONE);