Fix bug that prevented certain applications, such as Photoshop, from working correctly with espanso on macOS. Fix #159
This commit is contained in:
parent
793855a515
commit
d8392b4e48
|
@ -101,6 +101,14 @@ void send_string(const char * string) {
|
||||||
|
|
||||||
usleep(2000);
|
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;
|
i += chunk_size;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user