-
-
Save cmsj/05702e8d298d7a3b9590 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/extensions/eventtap/event.m b/extensions/eventtap/event.m | |
index 8fe09e6..358eeb4 100644 | |
--- a/extensions/eventtap/event.m | |
+++ b/extensions/eventtap/event.m | |
@@ -406,6 +406,7 @@ static int eventtap_event_newKeyEvent(lua_State* L) { | |
eventSource = CGEventSourceCreate(kCGEventSourceStatePrivate); | |
} | |
+ NSLog(@"Creating key event. Modifiers: %llu, keyCode: %d, isDown: %@", flags, keycode, isdown ? @"YES" : @"NO"); | |
CGEventRef keyevent = CGEventCreateKeyboardEvent(eventSource, keycode, isdown); | |
CGEventSetFlags(keyevent, flags); | |
new_eventtap_event(L, keyevent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment