Table of Contents

Method GetPrintableText

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

GetPrintableText()

Gets the printable text represented by this Key, preferring kitty keyboard metadata when present.

public string GetPrintableText()

Returns

string

Remarks

Resolution order:

  1. AssociatedText when present.
  2. ShiftedKeyCode when it is printable and the key is shifted.
  3. AsRune as the backward-compatible fallback.