Properties
keyMapReversed
keyMapReversed: object
Type declaration
-
[keyCode: number]: string
stateKeys
state
Keys: IStateKey[] = [{ name: 'shift', code: 16 },{ name: 'ctrl', code: 17 },{ name: 'alt', code: 18 }]
Methods
buildReversedKeymap
- buildReversedKeymap(keymap: any): object
-
Parameters
Returns object
-
[keyCode: number]: string
getKeys
-
Returns object
-
[a: string]: number | number[]
getKeysReversed
- getKeysReversed(): object
-
Returns object
-
[keyCode: number]: string
getValue
- getValue(key: string): number | number[]
-
Parameters
Returns number
|
number[]
init
- init(platform: any, userAgent: any): void
-
Parameters
-
platform: any
-
userAgent: any
Returns void
Object literals
keyMap
keyMap: object
backspace
backspace: number = 8
escape
escape: number = 27
pagedown
pagedown: number = 34
pageup
pageup: number = 33
Contains the logic for the keyMapping
KeyContainer