Struct PluginKeyChord
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
A key plus the modifiers required to trigger it. Ctrl/Alt/Shift are side-independent: either physical key of a held pair satisfies the chord.
public readonly record struct PluginKeyChord : IEquatable<PluginKeyChord>
- Implements
- Inherited Members
Constructors
PluginKeyChord(PluginKey, bool, bool, bool)
A key plus the modifiers required to trigger it. Ctrl/Alt/Shift are side-independent: either physical key of a held pair satisfies the chord.
public PluginKeyChord(PluginKey Key, bool Ctrl = false, bool Alt = false, bool Shift = false)
Parameters
KeyPluginKeyThe key that triggers the hotkey.
CtrlboolWhether Ctrl must be held.
AltboolWhether Alt must be held.
ShiftboolWhether Shift must be held.
Properties
Alt
Whether Alt must be held.
public bool Alt { get; init; }
Property Value
Ctrl
Whether Ctrl must be held.
public bool Ctrl { get; init; }
Property Value
Key
The key that triggers the hotkey.
public PluginKey Key { get; init; }
Property Value
Shift
Whether Shift must be held.
public bool Shift { get; init; }