KeyStep
Namespace: Hex1b.Input
Assembly: Hex1b.dll
Represents a single key press with modifiers in a key binding sequence.
csharp
public readonly record struct KeyStep : IEquatable<KeyStep>Implements
Constructors
KeyStep(Hex1bKey, Hex1bModifiers)
Represents a single key press with modifiers in a key binding sequence.
Parameters:
Key(Hex1bKey):Modifiers(Hex1bModifiers):
csharp
public KeyStep(Hex1bKey Key, Hex1bModifiers Modifiers = Hex1bModifiers.None)Properties
Key
Returns: Hex1bKey
csharp
public Hex1bKey Key { get; init; }Modifiers
Returns: Hex1bModifiers
csharp
public Hex1bModifiers Modifiers { get; init; }Methods
Matches(Hex1bKeyEvent)
Checks if this step matches the given key event.
Parameters:
evt(Hex1bKeyEvent):
Returns: Boolean
csharp
public bool Matches(Hex1bKeyEvent evt)ToString()
Returns the fully qualified type name of this instance.
Returns: String
The fully qualified type name.
csharp
public override string ToString()