src/services/shortcutsService/shortcuts.service.ts
Service that allows the shortcuts feature to work in the window component
Properties |
|
Methods |
Accessors |
| isRegister | ||||||||
isRegister(key: string)
|
||||||||
|
Determines whether component is register or not in the componentInstances dictionary.
Parameters :
Returns :
boolean
true if register |
| obtainEventKeyCombination | ||||||||
obtainEventKeyCombination(event: any)
|
||||||||
|
Obtains event key combination
Parameters :
Returns :
any
event key combination |
| registerInstance | ||||||||
registerInstance(componentInstance: ControlComponent)
|
||||||||
|
Registers the instance pass as parameter when ngOnInit cycle is called by the component. componentInstance dictionary
Parameters :
Returns :
void
|
| resolveShortCut | ||||||||||||
resolveShortCut(event: any, tabOService: any)
|
||||||||||||
|
Resolves short cut pass as parameter.
Parameters :
Returns :
boolean
|
| retrieveComponentShortCut | ||||||||
retrieveComponentShortCut(componentInstance: ControlComponent)
|
||||||||
|
Retrieves component shortcut if it exists.
Parameters :
Returns :
string
component shortcut. |
| triggerUnderline |
triggerUnderline()
|
|
Emits a true value to trigger the underline in all shortcuts
Returns :
void
|
| unregisterInstance | ||||||||
unregisterInstance(componentInstance: ControlComponent)
|
||||||||
|
Unregisters the instance pass as parameter when ngOnDestroy cycle is called by the component. componentInstances dictionary
Parameters :
Returns :
void
|
| Private componentsInstances |
Type : IDictionary
|
Default value : new Dictionary()
|
|
Components instances dictionary of accelerator service |
| shortcutUnderlineEmitted |
getshortcutUnderlineEmitted()
|