[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
在线咨询 立即试用
(Showing Draft Content)

GC.Spread.Commands.Key

Enumeration: Key

Spread.Commands.Key

表示键码。

example

//这个示例创建了一个使用回车键的自定义动作。
var activeSheet = spread.getActiveSheet();
spread.commandManager().register('myCmd',
                function ColorAction() {
                    //点击一个单元格并按回车键。
                    activeSheet.getCell(activeSheet.getActiveRowIndex(), activeSheet.getActiveColumnIndex()).backColor("red");
                }
            );
//将创建的动作映射到回车键。
spread.commandManager().setShortcutKey('myCmd', GC.Spread.Commands.Key.enter, false, false, false, false);

Table of contents

Enumeration members

Enumeration members

a

• a = 65

表示A键。


altkey

• altkey = 18

表示Alt键。


backspace

• backspace = 8

表示退格键。


c

• c = 67

表示C键。


ctrl

• ctrl = 17

表示Ctrl键。


del

• del = 46

表示Delete键。


down

• down = 40

表示下箭头键。


end

• end = 35

表示End键。


enter

• enter = 13

表示回车键。


esc

• esc = 27

表示Esc键。


home

• home = 36

表示Home键。


left

• left = 37

表示左箭头键。


pdn

• pdn = 34

表示Page Down键。


pup

• pup = 33

表示Page Up键。


• right = 39

表示右箭头键。


shift

• shift = 16

表示Shift键。


space

• space = 32

表示空格键。


tab

• tab = 9

表示Tab键。


up

• up = 38

表示上箭头键。


v

• v = 86

表示V键。


x

• x = 88

表示X键。


y

• y = 89

表示Y键。


z

• z = 90

表示Z键。