KeyBindingsManager
Extends:
manage keybindings for hotkeys/shortcuts
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
shiftKey: boolean |
|
| Private Members | ||
| private |
_keys: *[] |
|
| private |
_log: * |
|
| private |
_tab: * |
|
Method Summary
| Public Methods | ||
| public |
download() |
|
| public |
key(key: string | any[], title: string, event: string, target: string, options: KeyOptions, cb: keyCallback) |
|
| public |
show() |
|
| Private Methods | ||
| private |
_onKeyDown(e: KeyboardEvent) |
|
| private |
_onKeyPress(e: KeyboardEvent) |
|
| private |
_onKeyUp(e: *) |
|
| private |
_prepareKeysForDisplay(keys: *): * |
|
| private |
addKey(key: string, title: string, event: string, target: string, options: KeyOptions, cb: Function) |
|
Public Constructors
public constructor() source
Public Members
public shiftKey: boolean source
Private Members
private _keys: *[] source
private _log: * source
private _tab: * source
Public Methods
public download() source
public key(key: string | any[], title: string, event: string, target: string, options: KeyOptions, cb: keyCallback) source
Params:
| Name | Type | Attribute | Description |
| key | string | any[] | ||
| title | string | ||
| event | string | ||
| target | string | ||
| options | KeyOptions | ||
| cb | keyCallback |
public show() source
Private Methods
private _onKeyDown(e: KeyboardEvent) source
Params:
| Name | Type | Attribute | Description |
| e | KeyboardEvent |
private _onKeyPress(e: KeyboardEvent) source
Params:
| Name | Type | Attribute | Description |
| e | KeyboardEvent |
private _onKeyUp(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |
private _prepareKeysForDisplay(keys: *): * source
Params:
| Name | Type | Attribute | Description |
| keys | * |
Return:
| * |
private addKey(key: string, title: string, event: string, target: string, options: KeyOptions, cb: Function) source
Params:
| Name | Type | Attribute | Description |
| key | string | ||
| title | string | ||
| event | string | ||
| target | string | ||
| options | KeyOptions | ||
| cb | Function |