File diff r15406:54ee8730c306 → r15407:387627af240b
src/hotkeys.cpp
Show inline comments
 
@@ -64,13 +64,13 @@ static uint16 ParseCode(const char *star
 
	while (end > start && *end == ' ') end--;
 
	if (end - start == 1) {
 
		if (*start >= 'a' && *start <= 'z') return *start - ('a' - 'A');
 
		return *start;
 
	}
 
	for (uint i = 0; i < lengthof(_keycode_to_name); i++) {
 
		if (strnicmp(start, _keycode_to_name[i].name, end - start) == 0) {
 
		if (strncasecmp(start, _keycode_to_name[i].name, end - start) == 0) {
 
			return _keycode_to_name[i].keycode;
 
		}
 
	}
 
	return 0;
 
}