C# Keyboard Wedge API Documentation
C# Keyboard Wedge API Documentation
EasyScriptAPI
EasyScript Class
EasyScript Methods
AddListener Method
GetCardProtocol Method
GetSignatureProtocol Method
KeyboardEventToChar Method
Parse Method
ParseCardSwipe Method
ParseSignature Method
RemoveListener Method
RenderSignature Method

# EasyScript KeyboardEventToChar Method

This method will attempt to take a keyboard event from either KeyUp or KeyDown and attempt to turn it into its representation in the English - US keyboard layout. This should allow EasyScript devices to work in mixed keyboard environments.

Namespace: EasyScriptAPI
Assembly: EasyScriptAPI (in EasyScriptAPI.dll) Version: 3.5.29.0 (3.5.29.0)
Syntax
C#
VB
C++
F#
Copy

    public static char? KeyboardEventToChar(
    	KeyEventArgs e
    )

    Public Shared Function KeyboardEventToChar (
    	e As KeyEventArgs
    ) As Char?

    public:
    static Nullable<wchar_t> KeyboardEventToChar(
    	KeyEventArgs^ e
    )

    static member KeyboardEventToChar :
            e : KeyEventArgs -> Nullable<char>

#### Parameters

e
  Type: System.Windows.Forms
  KeyEventArgs
  Keyboard event to translate.

#### Return Value

Type: Nullable
Char
Character representing the key press if available, null otherwise.
See Also

#### Reference

EasyScript Class
EasyScriptAPI Namespace