SpreadJS 14
GC.Spread.Sheets Namespace / Commands type / moveToNextCellThenControl Field
In This Topic
    moveToNextCellThenControl Field
    In This Topic
    Represents the command used to select the next control if the active cell is the last visible cell; otherwise, move the active cell to the next cell.
    Syntax
    var value; // Type: moveToNextCellThenControl
    value = GC.Spread.Sheets.Commands.moveToNextCellThenControl;
    var moveToNextCellThenControl : moveToNextCellThenControl;
    Example
    This example maps the moveToNextCellThenControl action.
    spread.commandManager().setShortcutKey('moveToNextCellThenControl', GC.Spread.Commands.Key.tab, false, false, false, false); // Tab key
    spread.commandManager().setShortcutKey('moveToPreviousCellThenControl', GC.Spread.Commands.Key.tab, false, true, false, false); // Shift key and Tab key
    Remarks
    Name Description

    canUndo

    boolean

    Indicates whether the command supports undo and redo operations.

    execute

    function

    Performs an execute or undo function.

    The arguments of the execute method are as follows.

    • context {GC.Spread.Sheets.Workbook} - The context of the operation.
    • options {Object} - The options of the operation.
    • options.sheetName {string} - The sheet name.
    • isUndo {boolean} - true if this is an undo operation; otherwise, false.
    See Also

    Reference

    Commands type