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;
        }
Esempio n. 2
0
 internal HotKey(HotKey hotKey)
     : this(hotKey.Function, hotKey.Key, hotKey.ModifierKeys)
 {
 }
Esempio n. 3
0
 internal HotKey(HotKey hotKey)
     : this(hotKey.Function, hotKey.Key, hotKey.ModifierKeys)
 {
 }