コード例 #1
0
 private void OnGlobalKeyDown(object sender, RawKeyEventArgs e)
 {
     Debug.WriteLine(e.Key);
     if (e.Key == Key.LeftCtrl)
     {
         _leftControlDown = true;
     }
     if (e.Key == Key.Cancel || (_leftControlDown && e.Key == Key.P))
     {
         CallStop();
     }
     if (_leftControlDown && (e.Key == Key.Add || e.Key == Key.Right))
     {
         if (Replaying)
         {
             SkipDelay();
         }
         else
         {
             CallReplay();
         }
     }
 }