Пример #1
0
 private void keyPressedHandler(object sender, RawKeyEventArgs args)
 {
     // ESC stops mouse emulation
     if (args.Key == Key.Escape)
     {
         this.Dispatcher.BeginInvoke(new NoArgDelegate(this.stopMouseEmulation), null);
     }
 }