ShortcutKey Service
Allows gadgets or components to create shortcut keys for any component or gadget-related actions.
Example
Methods
getShorcutKeys()
Retrieves all the registered shortcut keys.
Example
Returns
{Array}
The array of objects. The objects content includes the following:
-
{String}
accessKey—The key combination for the shortcut. -
{String}
actionName—The name of the action or operation performed by the assigned shortcut keys. -
{String}
componentName—The name of the functionality, component, or the gadget. -
{Boolean}
conflict—Determines whether the shortcut key is conflicting with another shortcut key. -
{Enum}
executionScope—Determines the execution scope. -
{Function}
handler—The function that is invoked when the shortcut keys are pressed. -
{String}
id—Unique identifier of the gadget. -
{Boolean}
isPageLevel—Determines whether the shortcut key is at the page level. -
{String}
key—The main key to be combined with modifier keys. -
{String}
modifierKeys—The modifier key is used commonly in keyboard shortcuts on the host platform. -
{String}
type—Determines whether the shortcut key runs on component or gadget.
init()
Initiates the ShortcutKeyService for the Container or the gadgets.
Example
registerShortcutKey(keys)
Registers the shortcut keys for the components or the gadgets. A key combination consists of a main key and a set of modifier keys. The main key is specified by its key character - key
. A modifier key is Shift
, Ctrl
, Alt
, or the combination.
Parameters
Name |
Type |
Description |
Required |
---|---|---|---|
keys |
Array |
The array of key objects. |
Yes |
Example
The following table lists the shortcut key registration payload details.
Name |
Type |
Description |
Required |
---|---|---|---|
id |
String |
Unique identifier of the gadget. Format: companyName_gadgetId_functionId |
Optional |
componentName |
String |
The name of the functionality, component, or the gadget. |
Yes |
actionName |
String |
The name of the action or operation performed by the assigned shortcut keys. |
Yes |
modifierKeys |
String |
The modifier key is used commonly in keyboard shortcuts on the host platform. The keyboard modifier key combinations are:
These are predefined in ShortcutKeyService.CONSTANTS. For more information on predefined modifier keys, see ShortcutKeyService.CONSTANTS. |
Optional |
key |
String |
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. |
Yes |
executionScope |
Enum |
Determines the execution scope.
For more information on CONSTANTS, see ShortcutKeyService.CONSTANTS. |
Yes |
handler |
Function |
The function that is invoked when the shortcut keys are pressed. |
Yes |
ShortcutKeyService.CONSTANTS
The following table lists the predefined modifier keys.
Shortcut Key |
Modifier Key |
---|---|
Ctrl + Shift |
|
Alt + Shift |
|
Ctrl + Alt |
|
Ctrl |
|
Shift |
|
Alt |
|
Note |
|
sendKeyupEvent(keyEvent)
Sends the Keyup event object to the Finesse container. If there is any custom iFrame created by the gadget that is not controlled by Finesse, then the Finesse shortcut key framework cannot capture the KeyupEvent from that custom iFrame to run the shortcut keys.
The Keyup event occurs when a keyboard key is released. The Keyup event object is captured inside the child iFrame and propagated to its immediate parent. The parent again has to propagate the event until the event reaches the Finesse container. When the immediate parent is the Finesse container, then use sendKeyupEvent to propagate the event to Finesse container. Param object has to be serializable and cannot contain any functions.
Example
Parameters
Name |
Type |
Description |
Required |
---|---|---|---|
keyEvent |
Object |
The key event sent to the Finesse container. |
Yes |
Shortcut Keys List
The following table lists out-of-the-box agent-specific shortcut keys which should not be used by third-party applications. If the same shortcut keys are used it results in conflict.
Group | Action | Shortcut Key |
---|---|---|
Agent State | Ready for Call | Ctrl + Alt + R |
Not Ready for Call | Ctrl + Alt + N | |
Open Digital Channel State Control | Ctrl + Shift + L | |
Ready for All Digital Channels | Ctrl + Shift + V | |
Not Ready for All Digital Channels | Ctrl + Shift + Z | |
Application | Switch between Popover | Ctrl + Alt + P |
Maximize/Restore view | Ctrl + Shift + 0 | |
Call Handling | Make New Call | Ctrl + Alt + O |
Direct Transfer Call | Ctrl + Alt + Q | |
Open Keypad (DTMF) | Ctrl + Alt + K | |
Open Consult | Ctrl + Alt + C | |
Wrap-Up Call | Ctrl + Alt + W | |
Reclassify Call | Ctrl + Alt + Y | |
Schedule Callback | Ctrl + Alt + S | |
Answer/Accept Call | Ctrl + Alt + A | |
Close - Remove Record from Campaign | Ctrl + Alt + J | |
Reject - Return Record to Campaign/Close this Callback | Ctrl + Alt + U | |
End Call | Ctrl + Alt + E | |
Hold Call | Ctrl + Alt + V | |
Retrieve Call | Ctrl + Alt + G | |
Transfer Call | Ctrl + Alt + X | |
Conference Call | Ctrl + Alt + H | |
Desktop Chat | Toggle, Minimize and Maximize Chat Window | Ctrl + Shift + 1 |
Open Desktop Chat | Ctrl + Shift + 3 | |
Edit Call Variable |
Save Edited Call Variable Values |
Ctrl + Alt + M |
Revert Edited Call Variable Values |
Ctrl + Alt + Z | |
Keyboard Shortcuts | Keyboard Shortcuts List | Ctrl + Alt + F |
Navigation | Home | Ctrl + Alt + 1 |
My History | Ctrl + Alt + 2 | |
My Statistics | Ctrl + Alt + 3 | |
Manage Customer | Ctrl + Alt + 4 | |
Send Error Report | Send Error Report | Ctrl + Shift + 2 |
Sign Out | Sign Out | Ctrl + Alt + L |
Agent State (for Unified CCE) | Ready for Email | Ctrl + Shift + 4 |
Ready for Chat | Ctrl + Shift + 5 | |
Not Ready for Email | Ctrl + Shift + 6 | |
Not Ready for Chat | Ctrl + Shift + 7 |
Group | Action | Shortcut Key |
---|---|---|
Call Handling | Barge in Call | Ctrl + Alt + B |
Drop Participant | Ctrl + Alt + D | |
Team Message | Open Team Message Window | Ctrl + Shift + Y |
Team Performance | Select Team | Ctrl + Shift + F |