TerminalKeyEvent
One keyboard event accepted by the terminal input encoder.
Exactly one of key or codepoint must be provided. Non-printable keys use key; printable text uses a Unicode scalar codepoint.
Constructors
Types
Factory methods and sentinel values for TerminalKeyEvent.
Properties
host-owned text produced by this key for Kitty associated-text reporting, or null when unknown or inapplicable.
standard PC-101 base-layout key scalar for Kitty alternate-key reporting, or NO_CODEPOINT when unknown.
Unicode scalar value for printable input, or NO_CODEPOINT when this is a non-printable key.
non-printable key, or null when this is printable input.
active keyboard modifiers using TerminalModifiers bits.
shifted current-layout key scalar for Kitty alternate-key reporting, or NO_CODEPOINT when unknown.
physical lifecycle phase as reported by the host adapter.
unshifted Unicode scalar identifying the physical text-producing key for Kitty-compatible protocols, or NO_CODEPOINT when the input source cannot provide that identity. This may differ from codepoint, such as a for a Shift+A event that produces A.