Table of Contents

Method MapConsoleKeyInfoToKeyCode

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

MapConsoleKeyInfoToKeyCode(ConsoleKeyInfo)

Maps a ConsoleKeyInfo to a KeyCode.

public static KeyCode MapConsoleKeyInfoToKeyCode(ConsoleKeyInfo consoleKeyInfo)

Parameters

consoleKeyInfo ConsoleKeyInfo

The console key.

Returns

KeyCode

The KeyCode or the consoleKeyInfo.