Skip to content
Discussion options

You must be logged in to vote

Hi! Thanks for asking!

This information is already available, and not just in keyboard events, but in all events. As such, it's contained directly in the UioHookEvent instead of KeyboardEventData (or MouseEventData, or MouseWheelEventData). UioHookEvent contains the Mask field which represents the mask of the currently pressed modifiers. ModifierMask is an enum of possible modifiers and has extension methods to query the modifiers in a more convenient way.

You can access the event object inside the global hook event handler through the RawEvent property of HookEventArgs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alonrks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants