internal static HotKey AddOrFind(HotKeyFunction hotKeyFunction) { HotKey hkey = Runtime.Instance.Settings.HotKeys.ToList().Find(x => x.Function == hotKeyFunction); if (hkey == null) { Runtime.Instance.Settings.HotKeys.Add(hkey = new HotKey(hotKeyFunction)); } return hkey; }
internal HotKey(HotKey hotKey) : this(hotKey.Function, hotKey.Key, hotKey.ModifierKeys) { }