Develop > Presentation layer > Customize IBM Sales Center > Accelerator keys
Changing a key binding
The default IBM Sales Center accelerator keys are defined by the org.eclipse.ui.commands extension point in the com.ibm.commerce.telesales.ui.impl plug-in. This extension point allows you to define a command and a keyBinding for that command. This section explains how to change a key binding.
To change a default IBM Sales Center key binding:
Procedure
- Declare a new key configuration using the org.eclipse.ui.commands extension point. The new key configuration must use com.ibm.commerce.telesales.ui.telesalesAcceleratorConfiguration as the parentId.
- Define a keyBinding element that associates a new key sequence with the key binding. Within this element specify the ID of the new key configuration for the configurationId attribute. This example assigns Ctrl+X to the log off command:
<?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.0"?> <plugin> <extension point="com.ibm.commerce.telesales.configurator"> <configurator path="config"/> </extension> <extension point="org.eclipse.ui.commands"> <keyConfiguration name="Extended key configuration" description="extended key configuration" parentId="com.ibm.commerce.telesales.ui.telesalesAcceleratorConfiguration" id="extensions.extendedAcceleratorConfiguration"> </keyConfiguration> <keyBinding commandId="com.ibm.commerce.telesales.ui.logoffCommand" keySequence="Ctrl+X" keyConfigurationId="extensions.extendedAcceleratorConfiguration"> </keyBinding> </extension> </plugin>
- Use the system configurator to replace com.ibm.commerce.telesales.ui.telesalesAcceleratorConfiguration with the new key configuration.
com.ibm.commerce.telesales.ui.telesalesAcceleratorConfiguration=extensions.extendedAcceleratorConfiguration
Related concepts
Related tasks