Struct KeyboardKeyBinding
A keyboard key that triggers a button action, with any modifier keys that must be held.
public readonly record struct KeyboardKeyBinding : IEquatable<KeyboardKeyBinding>
- Implements
- Inherited Members
Constructors
KeyboardKeyBinding(Key, KeyModifiers)
A keyboard key that triggers a button action, with any modifier keys that must be held.
public KeyboardKeyBinding(Key Key, KeyModifiers Modifiers = KeyModifiers.None)
Parameters
KeyKeyThe key.
ModifiersKeyModifiersThe modifier keys that must be held, or None.
Properties
Key
The key.
public Key Key { get; init; }
Property Value
Modifiers
The modifier keys that must be held, or None.
public KeyModifiers Modifiers { get; init; }