src/native_modules/autotype/src/autotype_macos.cc
void _keyEvent(CGKeyCode keyCode, bool isDown){
    CGEventRef keyEvent = CGEventCreateKeyboardEvent(NULL,keyCode , isDown);
    CGEventPost(kCGHIDEventTap, keyEvent);
    CFRelease(keyEvent);
  }
// Send an event specifying if the key is up or down
Send an event specifying if the key is up or down
Send an event specifying if the key is up or down
void _keyEvent(CGKeyCode keyCode, bool isDown){
    CGEventRef keyEvent = CGEventCreateKeyboardEvent(NULL,keyCode , isDown);
    CGEventPost(kCGHIDEventTap, keyEvent);
    CFRelease(keyEvent);
  }
void _keyEvent ( CGKeyCode keyCode , bool isDown ) { CGEventRef keyEvent = CGEventCreateKeyboardEvent ( NULL , keyCode , isDown ) ; CGEventPost ( kCGHIDEventTap , keyEvent ) ; CFRelease ( keyEvent ) ; }
Send an event specifying if the key is up or down
Send an event specifying if the key is up or down