SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / Base class / processKeyDown Method
The KeyboardEvent.
The context associated with the cell type. See the Remarks for more information.
In This Topic
    processKeyDown Method
    In This Topic
    Processes key down in display mode.
    Syntax
    var instance = new GC.Spread.Sheets.CellTypes.Base();
    var value; // Type: boolean
    value = instance.processKeyDown(event, context);
    function processKeyDown( 
       event : KeyboardEvent,
       context : Object
    ) : boolean;

    Parameters

    event
    The KeyboardEvent.
    context
    The context associated with the cell type. See the Remarks for more information.

    Return Value

    Returns true if the process is successful; otherwise, false.
    Remarks

    You can override the isReservedKey method to customize the reserved key. In display mode, once isReservedKey returns True, the sheet will not handle the reserved key event. The event is handled by the processKeyDown and processKeyUp methods.

    The context parameter can include the following items:

    Item Type Description
    context.sheet GC.Spread.Sheets.Sheet instance Indicates the current sheet.
    context.row number The row index.
    context.col number The column index.
    context.sheetArea GC.Spread.Sheets.SheetArea The current sheet area.
    See Also

    Reference

    Base class