Register a global hotkey without support for assistive devices enabled
问题 Using this code, I may register a global event handler: [NSEvent addGlobalMonitorForEventsMatchingMask: NSKeyDownMask handler: ^(NSEvent *incomingEvent) { NSString *chars = [[incomingEvent characters] lowercaseString]; unichar character = [chars characterAtIndex:0]; // do something useful NSLog(@"keydown globally! Which key? This key: %c", character); }]; Unfortunately, events get passed along to this monitor, if support for assistive devices is enabled. Without assistive devices being