[]
Represents the key code.
example
//This example creates a custom action using the enter key.
var activeSheet = spread.getActiveSheet();
spread.commandManager().register('myCmd',
function ColorAction() {
//Click on a cell and press the Enter key.
activeSheet.getCell(activeSheet.getActiveRowIndex(), activeSheet.getActiveColumnIndex()).backColor("red");
}
);
//Map the created action to the Enter key.
spread.commandManager().setShortcutKey('myCmd', GC.Spread.Commands.Key.enter, false, false, false, false);
• a = 65
Indicates the A key
• altkey = 18
Indicates the Alt key.
• backspace = 8
Indicates the Backspace key.
• c = 67
Indicates the C key.
• ctrl = 17
Indicates the Ctrl key.
• del = 46
Indicates the Delete key.
• down = 40
Indicates the down arrow key.
• end = 35
Indicates the End key.
• enter = 13
Indicates the Enter key.
• esc = 27
Indicates the Esc key.
• home = 36
Indicates the Home key.
• left = 37
Indicates the left arrow key.
• pdn = 34
Indicates the Page Down key.
• pup = 33
Indicates the Page Up key.
• right = 39
Indicates the right arrow key.
• shift = 16
Indicates the Shift key.
• space = 32
Indicates the space key.
• tab = 9
Indicates the Tab key.
• up = 38
Indicates the up arrow key.
• v = 86
Indicates the V key.
• x = 88
Indicates the X key.
• y = 89
Indicates the Y key.
• z = 90
Indicates the Z key.