mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 16:19:29 +00:00
Reduce delay when sending key-press events
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
/* Send the event */
|
||||
CGEventPost(kCGHIDEventTap, pressKey);
|
||||
/* TODO: Evaluate postToPid */
|
||||
usleep(0.05 * NSEC_PER_MSEC);
|
||||
usleep(0.025 * NSEC_PER_MSEC);
|
||||
CGEventPost(kCGHIDEventTap, releaseKey);
|
||||
|
||||
CFRelease(pressKey);
|
||||
|
||||
Reference in New Issue
Block a user