GcSpread.Sheets Namespace > CustomCellType type : processKeyDown Method |
var instance = new GcSpread.Sheets.CustomCellType(); var value; // Type: boolean value = instance.processKeyDown(event, context);
true
if processes successfully; otherwise, false
.sheet.rowFilter(new GcSpread.Sheets.HideRowFilter(new GcSpread.Sheets.Range(0,0,4,4))); sheet.repaint();
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 | GcSpread.Sheets.Sheet instance | Indicates the current sheet. |
context.row | number | The row index. |
context.col | number | The column index. |
context.sheetArea | GcSpread.Sheets.SheetArea | The current sheet area. |