KeyMapper(optionsopt)

Class KeyMapper

new KeyMapper(optionsopt)

Creates an instance of KeyMapper.

Parameters:
Name Type Attributes Description
options object <optional>

options

Properties
Name Type Description
splitter string

splitter string default is +

Methods

static getSharedInstance() → {KeyMapper}

Get sharedInstance

Returns:
KeyMapper

static keyCode(char) → {number}

get key code for a character

Parameters:
Name Type Description
char string

a character to be converted

Returns:
number -

key code for the char

convert(event) → {string}

Convert event to keyMap

Parameters:
Name Type Description
event event

Event object

Returns:
string