mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-22 15:19:27 +00:00
Extended key mapper to include modifiers as well
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user