Extended key mapper to include modifiers as well

This commit is contained in:
michael starke
2017-01-18 18:30:10 +01:00
parent 334e92d1b4
commit c9b3637c24
7 changed files with 108 additions and 30 deletions

View File

@@ -17,7 +17,7 @@
}
- (void)execute {
CGKeyCode keyCode = [MPKeyMapper keyCodeForCharacter:@"A"];
CGKeyCode keyCode = [MPKeyMapper keyCodeForCharacter:@"a" modifier:NULL];
if(keyCode == kMPUnknownKeyCode) {
NSLog(@"Unable to generate key code for 'A'");
return;