Exemple #1
0
 void HookManager_KeyUp(object sender, KeyEventArgs e)
 {
     if (ActiveKeyBindTextBox != null)
     {
         ActiveKeyBindTextBox.Text = string.Format("Key: {0}", e.KeyCode);
         ActiveKeyBindTextBox      = null;
     }
     else if (e.KeyCode.ToString().Equals(ShowCLKeyBind))
     {
         ShowChecklistsMenuItem.PerformClick();
     }
     else if (e.KeyCode.ToString().Equals(ShowProcKeyBind))
     {
         ProcessTopLevelVoiceCommand("show procedures");
     }
     else if ((CLForm != null) && (CLForm.Visible))
     {
         if (e.KeyCode.ToString().Equals(ProgressCLKeyBind))
         {
             CLForm.ProgressChecklist();
         }
         else if (e.KeyCode.ToString().Equals(RepeatCLIKeyBind))
         {
             CLForm.ReadActiveChecklistItem();
         }
         else if ((ProcForm != null) && (ProcForm.Visible))
         {
             ProcForm.OnDebugKeyEvent(e.KeyCode.ToString());
         }
     }
 }