Fixed issue with special keys being remapped again (resulting in mangeled key codes in release)

This commit is contained in:
michael starke
2014-12-03 17:30:13 +01:00
parent 7ce789790c
commit 559f7cd78f
3 changed files with 7 additions and 6 deletions

View File

@@ -39,12 +39,14 @@
if(![self isValid]) {
return; // no valid command. Stop.
}
CGKeyCode mappedKey = [self _transformKeyCode];
[self sendPressKey:mappedKey modifierFlags:self.modifierMask];
//CGKeyCode mappedKey = [self _transformKeyCode];
[self sendPressKey:self.keyCode modifierFlags:self.modifierMask];
}
- (BOOL)isValid {
return ([self _transformKeyCode] != kMPUnknownKeyCode);
return YES;
/* TODO test for actual validity of the command */
//return ([self _transformKeyCode] != kMPUnknownKeyCode);
}
- (CGKeyCode)_transformKeyCode {