From 0bf439e01df23e1f2abe5fcea06a497957e5dfff Mon Sep 17 00:00:00 2001 From: michael starke Date: Mon, 29 Aug 2016 17:44:10 +0200 Subject: [PATCH] fixed issue perventing any key press from being correctly mapped --- MacPass/MPKeyMapper.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MacPass/MPKeyMapper.m b/MacPass/MPKeyMapper.m index 7f681925..d4b1328a 100644 --- a/MacPass/MPKeyMapper.m +++ b/MacPass/MPKeyMapper.m @@ -84,7 +84,8 @@ uint16_t const kMPUnknownKeyCode = UINT16_MAX; tempCharToCodeDict[string] = @(keyCode); } } - keyboardCodeDictionary[localizedName] = [[NSDictionary alloc] initWithDictionary:tempCharToCodeDict]; + charToCodeDict = [[NSDictionary alloc] initWithDictionary:tempCharToCodeDict]; + keyboardCodeDictionary[localizedName] = charToCodeDict; } NSString *singleCharacter = [character substringToIndex:1].lowercaseString; if(charToCodeDict[singleCharacter]) {