ATG Commerce Service Center allows you to modify the keyboardshortcuts that are used throughout the application and Service Center.
To modify the shortcuts, you must modify the following files:
Agent/script/keyboardShortcutsService.js
Agent/script/keyboardTopicsService.js
DCS-CSR/script/keyboardShortcutsCSC.js
DCS-CSR/script/keyboardTopicsCSC.js
The keyboardShortcuts
files are used to map keyboard shortcuts to published topics. The keyboardTopics
files are used to execute these topics and perform the specific functions.
The following is an example of a keyboard shortcut definition for the shortcut key ALT+6:
atg.keyboard.registerShortcut(
"ALT+6", {
shortcut: "ALT + 6",
name: getResource("keyboard.service.customersTab.name"),
description: getResource("keyboard.service.customersTab.description"),
area: getResource("keyboard.area.workspace"),
topic: "CustomersTab",
notify: true
});
Where:
shortcut
is the shortcut key that is shown in the help windowname
is the localized display name, shown in the help windowdescription
is the localized description, shown in the help windowarea
is the localized functional area, shown in the help windowtopic
is the name of the topic that is fired when this shortcut is pressedaction
is the optional JavaScript function that is called when the shortcut is pressed (used when a topic is not available)notify
is an attribute that determines whether the small popup window in the bottom right of the screen is shown for the particular topic