Class App : addKeyboardShortcut Method


void addKeyboardShortcut( String commandName, String keyCombination )

Summary

Add a shortcut for an existing command


Parameters

ParameterDescription
String commandName The command name you wish to associate with the key combination
String keyCombination Key combination you wish to use


Examples

app.addNewCommand( "QuickTest", onQuickTest, onQuickTestUIUpdate );
app.addKeyboardShortcut( "QuickTest", "Ctrl+Shift+K" );

function onQuickTest()
{
alert( "hello" );
}

function onQuickTestUIUpdate( up )
{
up.enable( true );
}


See Also

  • App : addNewCommand


    Requirements

    build 1065