Example #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);
     }
 }