mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 01:12:31 +00:00
fixed issue perventing any key press from being correctly mapped
This commit is contained in:
@@ -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]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user