Struct KeyEvent
One decoded key press. Key identifies what was hit;
Glyph carries the character when Key is
Glyph (otherwise '\0');
Modifiers reports any held modifiers the terminal
surfaced.
public readonly record struct KeyEvent : IEquatable<KeyEvent>
- Implements
- Inherited Members
Constructors
KeyEvent(Key, char, KeyModifiers)
One decoded key press. Key identifies what was hit;
Glyph carries the character when Key is
Glyph (otherwise '\0');
Modifiers reports any held modifiers the terminal
surfaced.
public KeyEvent(Key Key, char Glyph = '\0', KeyModifiers Modifiers = KeyModifiers.None)
Parameters
KeyKeyGlyphcharModifiersKeyModifiers
Properties
Glyph
public char Glyph { get; init; }
Property Value
Key
public Key Key { get; init; }
Property Value
Modifiers
public KeyModifiers Modifiers { get; init; }