static private PostProcessInput ( object sender, System.Windows.Input.ProcessInputEventArgs e ) : void | ||
sender | object | |
e | System.Windows.Input.ProcessInputEventArgs | |
Результат | void |
static void PostProcessInput(object sender, ProcessInputEventArgs e)
{
if (CurrentListener != null) {
var a = e.StagingItem.Input as KeyEventArgs;
if (a != null && a.Key == Key.Escape) {
Mouse.Capture(null);
CurrentListener.IsDown = false;
CurrentListener.IsCanceled = true;
CurrentListener.Complete();
}
}
}