Skip to content

Commit

Permalink
Modifier change (#751)
Browse files Browse the repository at this point in the history
only update modifier when then event is a flag change
  • Loading branch information
groverlynn authored and LEOYoon-Tsaw committed Apr 29, 2024
1 parent 866eac5 commit aa628fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SquirrelInputController.m
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ - (BOOL)handleEvent:(NSEvent*)event client:(id)sender {
}
}

_lastModifier = modifiers;
if (event.type == NSEventTypeFlagsChanged) {
_lastModifier = modifiers;
}
_lastEventType = event.type;

return handled;
Expand Down

0 comments on commit aa628fb

Please sign in to comment.