C# Class PoshCode.Interop.KeyboardHelper

Extension methods for working with Keyboards and KeyEvents
Mostra file Open project: Jaykul/PoshConsole

Public Methods

Method Description
ToKeyInfo ( this e ) : System.Management.Automation.Host.KeyInfo

Create a KeyInfo from a KeyEventArgs

Private Methods

Method Description
GetChar ( int vk ) : char

Get the char from a VirtualKey -- MUST be called within the keyboard event handler.

GetControlKeyStates ( this kb ) : ControlKeyStates

Gets the control key states.

Method Details

ToKeyInfo() public static method

Create a KeyInfo from a KeyEventArgs
public static ToKeyInfo ( this e ) : System.Management.Automation.Host.KeyInfo
e this The KeyEventArgs
return System.Management.Automation.Host.KeyInfo