fixed issue perventing any key press from being correctly mapped

This commit is contained in:
michael starke
2016-08-29 17:44:10 +02:00
parent 793176bf2d
commit 0bf439e01d

View File

@@ -84,7 +84,8 @@ uint16_t const kMPUnknownKeyCode = UINT16_MAX;
tempCharToCodeDict[string] = @(keyCode); tempCharToCodeDict[string] = @(keyCode);
} }
} }
keyboardCodeDictionary[localizedName] = [[NSDictionary alloc] initWithDictionary:tempCharToCodeDict]; charToCodeDict = [[NSDictionary alloc] initWithDictionary:tempCharToCodeDict];
keyboardCodeDictionary[localizedName] = charToCodeDict;
} }
NSString *singleCharacter = [character substringToIndex:1].lowercaseString; NSString *singleCharacter = [character substringToIndex:1].lowercaseString;
if(charToCodeDict[singleCharacter]) { if(charToCodeDict[singleCharacter]) {