Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add 'break' statement at the end of the case block #445

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libuiohook/src/darwin/post_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static inline CGEventFlags get_key_event_mask(uiohook_event * const event) {

if (event->mask & (MASK_SHIFT)) { native_mask |= kCGEventFlagMaskShift; }
if (event->mask & (MASK_CTRL)) { native_mask |= kCGEventFlagMaskControl; }
if (event->mask & (MASK_META)) { native_mask |= kCGEventFlagMaskControl; }
if (event->mask & (MASK_META)) { native_mask |= kCGEventFlagMaskCommand; }
if (event->mask & (MASK_ALT)) { native_mask |= kCGEventFlagMaskAlternate; }

if (event->type == EVENT_KEY_PRESSED || event->type == EVENT_KEY_RELEASED || event->type == EVENT_KEY_TYPED) {
Expand Down
1 change: 1 addition & 0 deletions libuiohook/src/demo_hook_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ void dispatch_proc(uiohook_event * const event) {
break;
}
}
break;
case EVENT_KEY_RELEASED:
snprintf(buffer + length, sizeof(buffer) - length,
",keycode=%u,rawcode=0x%X",
Expand Down
Loading