Beispiel #1
0
 /// <summary>
 /// Unregisters all hotkeys
 /// </summary>
 public void Dispose()
 {
     if (!UsingCustomMessageLoop)
     {
         ComponentDispatcher.ThreadPreprocessMessage -= PreprocessMessage;
     }
     foreach (var hk in Hotkeys.Values)
     {
         WinApi.UnregisterHotKey(WindowHandle, hk.HotkeyId);
     }
     Hotkeys.Clear();
 }