Skip to content

Commit

Permalink
Merge pull request #18929 from ramezgerges/macos_pointer_events_mods
Browse files Browse the repository at this point in the history
fix(macos): add key modifiers to pointer event args
  • Loading branch information
jeromelaban authored Nov 27, 2024
2 parents 8bae473 + ff102bd commit f2f4743
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ - (void)sendEvent:(NSEvent *)event {
memset(&data, 0, sizeof(struct MouseEventData));
data.eventType = mouse;
data.inContact = inContact;
data.mods = get_modifiers(event.modifierFlags);
if ([self getPositionFrom:event x:&data.x y:&data.y]) {
#if false
// check subtype for most mouse events
Expand Down

0 comments on commit f2f4743

Please sign in to comment.