Fix bug that prevented certain applications, such as Photoshop, from working correctly with espanso on macOS. Fix #159

This commit is contained in:
Federico Terzi 2020-01-25 14:58:07 +01:00
parent 793855a515
commit d8392b4e48

View File

@ -101,6 +101,14 @@ void send_string(const char * string) {
usleep(2000);
// Some applications require an explicit release of the space key
// For more information: https://github.com/federico-terzi/espanso/issues/159
CGEventRef e2 = CGEventCreateKeyboardEvent(NULL, 0x31, false);
CGEventPost(kCGHIDEventTap, e2);
CFRelease(e2);
usleep(2000);
i += chunk_size;
}
});