Property ActionTriggers.Disabled
Overload
Gets or sets whether triggers of this ActionTriggers instance are disabled.
public bool Disabled { get; set; }
Property Value
Remarks
Does not depend on ActionTriggers.DisabledEverywhere. Does not end/pause threads of trigger actions.
Examples
Note: the Triggers in examples is a field or property like readonly ActionTriggers Triggers = new();
.
Triggers.Hotkey["Ctrl+T"] = o => print.it("Ctrl+T");
Triggers.Hotkey["Ctrl+D"] = o => { print.it("Ctrl+D (disable/enable)"); Triggers.Disabled ^= true; }; //toggle
Triggers.Hotkey.Last.EnabledAlways = true;
Triggers.Run();