Table of Contents

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

Key PluginKey

The key that triggers the hotkey.

Ctrl bool

Whether Ctrl must be held.

Alt bool

Whether Alt must be held.

Shift bool

Whether Shift must be held.

Properties

Alt

Whether Alt must be held.

public bool Alt { get; init; }

Property Value

bool

Ctrl

Whether Ctrl must be held.

public bool Ctrl { get; init; }

Property Value

bool

Key

The key that triggers the hotkey.

public PluginKey Key { get; init; }

Property Value

PluginKey

Shift

Whether Shift must be held.

public bool Shift { get; init; }

Property Value

bool