SpreadJS 13
GC.Spread.Commands Namespace / CommandManager class / CommandManager Constructor
The execution context for all commands in the command manager.
In This Topic
    CommandManager Constructor
    In This Topic
    Represents a command manager.
    Syntax
    var instance = new GC.Spread.Commands.CommandManager(context);
    function CommandManager( 
       context : Object
    ) : CommandManager;

    Parameters

    context
    The execution context for all commands in the command manager.
    Example
    This example changes the default key behavior.
    var manager = spread.commandManager();
    var upKey = manager.setShortcutKey(undefined, GC.Spread.Commands.Key.up, false, false, false, false);
    var downKey = manager.setShortcutKey(undefined, GC.Spread.Commands.Key.down, false, false, false, false);
    
    See Also