public void Add(NativeKey key, Action value) { if (_isRunning) { throw new InvalidOperationException($"Hotkey running now. Please Stop it"); } _hotkeys.Add(key, value); }
public void Remove(NativeKey key) { if (_isRunning) { throw new InvalidOperationException($"Hotkey running now. Please Stop it"); } _hotkeys.Remove(key); }
public Action this[NativeKey key] { get { return(_hotkeys[key]); } set { if (_isRunning) { throw new InvalidOperationException($"Hotkey running now. Please Stop it"); } _hotkeys[key] = value; } }
public bool Contains(NativeKey key) { return(_hotkeys.ContainsKey(key)); }