Table of Contents

Property AsRune

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

AsRune

The key value as a Rune. This is the actual value of the key pressed, and is independent of the modifiers. Useful for determining if a key represents is a printable character.

public Rune AsRune { get; }

Property Value

Rune

Remarks

Keys with Ctrl or Alt modifiers will return default.

If the key is a letter key (A-Z), the Rune will be the upper or lower case letter depending on whether ShiftMask is set.

If the key is outside of the CharMask range, the returned Rune will be default.