Spread.Sheets Documentation
Key Enumeration
GC.Spread.Commands Namespace : Key Enumeration
Represents the key code.
Members
MemberDescription
aIndicates the A key
altkeyIndicates the Alt key.
backspaceIndicates the Backspace key.
cIndicates the C key.
ctrlIndicates the Ctrl key.
delIndicates the Delete key.
downIndicates the down arrow key.
endIndicates the End key.
enterIndicates the Enter key.
escIndicates the Esc key.
homeIndicates the Home key.
leftIndicates the left arrow key.
pdnIndicates the Page Down key.
pupIndicates the Page Up key.
rightIndicates the right arrow key.
shiftIndicates the Shift key.
spaceIndicates the space key.
tabIndicates the Tab key.
upIndicates the up arrow key.
vIndicates the V key.
xIndicates the X key.
yIndicates the Y key.
zIndicates the Z key.
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);
Inheritance Hierarchy

Object
   GC.Spread.Commands.Key

See Also

Reference

GC.Spread.Commands Namespace