From 988cf3051cb9f83f888ddc10b906adc772320dc5 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Wed, 2 Jan 2019 19:00:05 +0100 Subject: [PATCH] Reduce delay when sending key-press events --- MacPass/MPKeyTyper.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacPass/MPKeyTyper.m b/MacPass/MPKeyTyper.m index 55088af7..7a0b144e 100644 --- a/MacPass/MPKeyTyper.m +++ b/MacPass/MPKeyTyper.m @@ -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);