Exemplo n.º 1
0
        private static void SetCurrent(Key key, Hotkey hotkey)
        {
            if (CurrentHotkeys.ContainsKey(key))
            {
                throw new Exception($"An active hotkey of that type '{key}' already exists. Prev priority: {CurrentHotkeys[key].Priority}, new priority: {hotkey.Priority}");
            }

            CurrentHotkeys.Add(key, hotkey);
        }