Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 /// <summary>
 /// Adds a hotkey to the collection.
 /// </summary>
 /// <param name="key"></param>
 public void Add(HotKey key)
 {
     List.Add(key);
 }