/// <summary> /// Creates hotkey for non-hooked mode. /// </summary> public Hotkey(string name, KeyCombo keyCombo, Action action) : this(keyCombo, action) { KeyCombo.Name = name; }
/// <summary> /// Creates hotkey for hooked mode. /// </summary> public Hotkey(KeyCombo keyCombo, Action action) { KeyCombo = keyCombo; _action = action; Id = (int)HotkeyInterop.AddAtom(Guid.NewGuid().ToString()); }