Exemple #1
0
 private void applyModificationToGlobalHotKey()
 {
     if (currentOptions.key == Keys.Shift ||
         currentOptions.key == Keys.ShiftKey ||
         currentOptions.key == Keys.LShiftKey ||
         currentOptions.key == Keys.RShiftKey)
     {
         ghk.modifyKey(0x0004, Keys.None);
     }
     else if (currentOptions.key == Keys.Control ||
              currentOptions.key == Keys.ControlKey ||
              currentOptions.key == Keys.LControlKey ||
              currentOptions.key == Keys.RControlKey)
     {
         ghk.modifyKey(0x0002, Keys.None);
     }
     else if (currentOptions.key == Keys.Alt)
     {
         ghk.modifyKey(0x0002, Keys.None);
     }
     else
     {
         ghk.modifyKey(0x0000, currentOptions.key);
     }
 }