File

src/services/shortcutsService/shortcuts.service.ts

Description

Service that allows the shortcuts feature to work in the window component

Index

Properties
Methods
Accessors

Methods

isRegister
isRegister(key: string)

Determines whether component is register or not in the componentInstances dictionary.

Parameters :
Name Type Optional Description
key string No

The key part of combination of alt + 'key'

Returns : boolean

true if register

obtainEventKeyCombination
obtainEventKeyCombination(event: any)

Obtains event key combination

Parameters :
Name Type Optional Description
event any No

Event parameter to extract key combination

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 :
Name Type Optional Description
componentInstance ControlComponent No

The component instance to be added to componentInstance dictionary

Returns : void
resolveShortCut
resolveShortCut(event: any, tabOService: any)

Resolves short cut pass as parameter.

Parameters :
Name Type Optional Description
event any No

Event data of key combination event

tabOService any No
Returns : boolean
retrieveComponentShortCut
retrieveComponentShortCut(componentInstance: ControlComponent)

Retrieves component shortcut if it exists.

Parameters :
Name Type Optional Description
componentInstance ControlComponent No

The component instance to be check.

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 :
Name Type Optional Description
componentInstance ControlComponent No

The component instance to be removed of componentInstances dictionary

Returns : void

Properties

Private componentsInstances
Type : IDictionary
Default value : new Dictionary()

Components instances dictionary of accelerator service

Private triggerShortcutUnderline
Type : Subject<boolean>
Default value : new Subject()

The triggerShortcutUnderline subject. This is used to notify all buttons with shortcuts to apply the underline style to the character after the ampersand

Accessors

shortcutUnderlineEmitted
getshortcutUnderlineEmitted()

results matching ""

    No results matching ""