mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 10:32:26 +00:00
Merge pull request #213 from jamesrhurst/autotype-delay
Wait 0.1s between the keydown and keyup event
This commit is contained in:
@@ -196,6 +196,7 @@
|
||||
|
||||
/* Send the event */
|
||||
CGEventPost(kCGSessionEventTap, pressKey);
|
||||
usleep(100000);
|
||||
CGEventPost(kCGSessionEventTap, releaseKey);
|
||||
|
||||
CFRelease(pressKey);
|
||||
|
||||
Reference in New Issue
Block a user