GC.Spread.Commands Namespace : Key Enumeration |
Member | Description |
---|---|
a | Indicates the A key |
altkey | Indicates the Alt key. |
backspace | Indicates the Backspace key. |
c | Indicates the C key. |
ctrl | Indicates the Ctrl key. |
del | Indicates the Delete key. |
down | Indicates the down arrow key. |
end | Indicates the End key. |
enter | Indicates the Enter key. |
esc | Indicates the Esc key. |
home | Indicates the Home key. |
left | Indicates the left arrow key. |
pdn | Indicates the Page Down key. |
pup | Indicates the Page Up key. |
right | Indicates the right arrow key. |
shift | Indicates the Shift key. |
space | Indicates the space key. |
tab | Indicates the Tab key. |
up | Indicates the up arrow key. |
v | Indicates the V key. |
x | Indicates the X key. |
y | Indicates the Y key. |
z | Indicates the Z 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);
Object
GC.Spread.Commands.Key