Table of Contents

Property ShiftedKeyCode

Namespace
Terminal.Gui.Input
Assembly
Terminal.Gui.dll

ShiftedKeyCode

Gets the shifted key code reported by the kitty keyboard protocol (flag 4).

public KeyCode ShiftedKeyCode { get; init; }

Property Value

KeyCode

Remarks

When the terminal reports alternate keys, this contains the shifted alternate key code for the active layout. For example, Shift+2 on a US layout may report ShiftedKeyCode = (KeyCode)'@'.

This value is metadata from kitty flag 4. It is not the same as the primary key code or the exact text emitted by the terminal.

Defaults to Null when the terminal does not report alternate keys.

This property does not participate in equality comparisons.