[]
        
(Showing Draft Content)

GC.Spread.Commands.Key

Enumeration: Key

Spread.Commands.Key

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);

Table of contents

Enumeration members

Enumeration members

a

a = 65

Indicates the A key


altkey

altkey = 18

Indicates the Alt key.


backspace

backspace = 8

Indicates the Backspace key.


c

c = 67

Indicates the C key.


ctrl

ctrl = 17

Indicates the Ctrl key.


del

del = 46

Indicates the Delete key.


down

down = 40

Indicates the down arrow key.


end

end = 35

Indicates the End key.


enter

enter = 13

Indicates the Enter key.


esc

esc = 27

Indicates the Esc key.


home

home = 36

Indicates the Home key.


left

left = 37

Indicates the left arrow key.


pdn

pdn = 34

Indicates the Page Down key.


pup

pup = 33

Indicates the Page Up key.


right = 39

Indicates the right arrow key.


shift

shift = 16

Indicates the Shift key.


space

space = 32

Indicates the space key.


tab

tab = 9

Indicates the Tab key.


up

up = 38

Indicates the up arrow key.


v

v = 86

Indicates the V key.


x

x = 88

Indicates the X key.


y

y = 89

Indicates the Y key.


z

z = 90

Indicates the Z key.