/// <summary> /// Registers a new hotkey. /// </summary> /// <param name="hk">Hotkey to register.</param> /// <returns>True if hotkey was registered, otherwise false.</returns> public bool Register(HotKey hk) { // register the hotkey. return Register(hk.Key, hk.Modifiers, hk.ID, hk.Handler); }
/// <summary> /// Unregisters the specified hotkey. /// </summary> /// <param name="hk">Hotkey to unregister.</param> /// <returns>True if the hotkey was unregistered, otherwise false.</returns> public bool Unregister(HotKey hk) { // unregister the hotkey. return Unregister(hk.ID); }
/// <summary> /// Adds a hotkey to the collection. /// </summary> /// <param name="key"></param> public void Add(HotKey key) { List.Add(key); }