The KeyboardModifiers
property provides access to the current state of keyboard modifier keys, such as Ctrl, Shift, and Alt. This property is useful for determining which modifier keys are being held down during user interactions with the gizmo.
The KeyboardModifiers
property provides access to the current state of keyboard modifier keys, such as Ctrl, Shift, and Alt. This property is useful for determining which modifier keys are being held down during user interactions with the gizmo.
Use the KeyboardModifiers
property to check the state of keyboard modifiers when handling input events. This can be particularly useful in scenarios where different actions are triggered based on whether a modifier key is pressed.
// Example of using KeyboardModifiers to check if the Ctrl key is pressed if (Gizmo.KeyboardModifiers.HasFlag(KeyboardModifiers.Control)) { // Perform action when Ctrl is pressed }