Skip to content

Conversation

encounter
Copy link

This updates the return type of CGEventTapCallBackFn to allow for three options:

  • Replace returns a newly-constructed event. (equivalent to the existing Option::Some)
  • Keep returns the same event, possibly modified by the user callback. (equivalent to the existing Option::None)
  • Drop returns nullptr, stopping event propagation. (new)

@mattjbray
Copy link
Contributor

Bump. I have tested this and it works well for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants