/mcpParameters Required Description Type Name Yes The array of key objects. Array keys Example finesse.shortcutkey.ShortcutKeyService.init(); finesse.shortcutkey.ShortcutKeyService.registerShortcutKey( [{ "id": "cisco_sample_gadget", "componentName": "Sample gadget", "actionName": "Sample gadget action name", "modifierKeys": finesse.shortcutkey.ShortcutKeyService.CONSTANTS.MODIFIER_KEYS_CTRL, "key": "e", "executionScope": "activeTab", "handler": function() {} }]); The following table lists the shortcut key registration payload details. Required Description Type Name Optional Unique identifier of the gadget. Format: companyName_gadgetId_functionId String id Yes The name of the functionality, component, or the gadget. String componentName Yes The name of the action or operation performed by the assigned shortcut keys. String actionName Optional The modifier key is used commonly in keyboard shortcuts on the host platform. The keyboard modifier key combinations are: • Ctrl + Shift (default) • Alt + Shift • Ctrl + Alt • Ctrl • Shift • Alt These are predefined in ShortcutKeyService.CONSTANTS. For more information on predefined modifier keys, see ShortcutKeyService.CONSTANTS, on page 521. String modifierKeys Yes The main key to be combined with modifier keys. For example, Ctrl + Shift + e where Ctrl and Shift are the modifiers keys, and e is the main key. String key Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 520 Cisco Finesse JavaScript APIs ShortcutKey Service