/// <summary> /// Adds a new hotkey and optionally adds it to the global list. /// </summary> /// <param name="KeyName"></param> /// <param name="Keys">The keyboard keys that need to be pressed to load this key.</param> /// <param name="AddToGlobalList">Add to the global list. Set this to false if your hotkeys only have a specific use.</param> /// <returns></returns> public DynaHotkey AddNewHotkey(string KeyName, List <Key> Keys = null, bool AddToGlobalList = true) { DynaHotkey DK = new DynaHotkey(KeyName, Keys); if (AddToGlobalList) { Hotkeys.Add(DK); } return(DK); }
public void DeleteHotkey(DynaHotkey DH) => Hotkeys.Remove(DH);
public void AddNewHotkey(string KeyName, List <Key> Keys = null) { DynaHotkey DK = new DynaHotkey(KeyName, Keys); Hotkeys.Add(DK); }