mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 02:49:45 +00:00
Fixed issue with special keys being remapped again (resulting in mangeled key codes in release)
This commit is contained in:
@@ -323,11 +323,10 @@
|
||||
Set the modifiers to the ones we want
|
||||
We use our private event source so no modifier reset should be needed
|
||||
*/
|
||||
CGEventSetFlags(pressKey,flags);
|
||||
CGEventSetFlags(pressKey, flags);
|
||||
CGEventSetFlags(releaseKey, flags);
|
||||
|
||||
/* Send the event */
|
||||
NSLog(@"Seding %@", self);
|
||||
CGEventPost(kCGHIDEventTap, pressKey);
|
||||
usleep(0.05 * NSEC_PER_MSEC);
|
||||
CGEventPost(kCGHIDEventTap, releaseKey);
|
||||
|
||||
Reference in New Issue
Block a user