Develop > Presentation layer > Customize IBM Sales Center > Accelerator keys


Add 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 section explains how to add a key binding.

To define a new key binding:


Procedure

  1. Define a new key configuration using the org.eclipse.ui.commands extension point. Your new key configuration will use com.ibm.commerce.telesales.ui.telesalesAcceleratorConfiguration as the parentId. Define the new key binding using the keyBinding element of the org.eclipse.ui.commands extension point. Ensure that you specify the ID of the new key configuration for the configurationId attribute.

    For example:

    <?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="myCommandId"
                keySequence="Ctrl+M"
               
    keyConfigurationId="extensions.extendedAcceleratorConfiguration">      
    </keyBinding>   
    </extension>
    </plugin>
    

    if the binding is for a new command, then define a command element and ensure that the command is associated with an action.

  2. 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

Accelerator keys

System configurator


Related tasks

Remove a key binding

Changing a key binding


+

Search Tips   |   Advanced Search