Get modifiers upon keyboard hook event #73
-
|
Hi, I was looking to get via Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
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 You can access the event object inside the global hook event handler through the |
Beta Was this translation helpful? Give feedback.
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
UioHookEventinstead ofKeyboardEventData(orMouseEventData, orMouseWheelEventData).UioHookEventcontains theMaskfield which represents the mask of the currently pressed modifiers.ModifierMaskis 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
RawEventproperty ofHookEventArgs.