KeyMonitorEventArgs

EventArgsReferencesSince v2.12
Arguments for key events observed by Window.PreviewKeyDown and Window.PreviewKeyUp.
Remarks: Unlike KeyEventArgs there is deliberately no way to mark the event as handled. Monitoring a window's keys observes them, it never consumes them, so the focused control always goes on to receive the key press. Use Control.KeyDown when you need to handle or suppress a key.

Constructors

KeyMonitorEventArgs

#
public KeyMonitorEventArgs(Keys keyData, KeyEventType keyEventType)
Initializes a new instance of the KeyMonitorEventArgs class.

Properties