KEY Enum

Module: _decorator Parent Module: cc

Key map for keyboard event

Index

  • none
  • back
  • menu
  • backspace
  • tab
  • enter
  • shift
  • ctrl
  • alt
  • pause
  • capslock
  • escape
  • space
  • pageup
  • pagedown
  • end
  • home
  • left
  • up
  • right
  • down
  • select
  • insert
  • Delete
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
  • i
  • j
  • k
  • l
  • m
  • n
  • o
  • p
  • q
  • r
  • s
  • t
  • u
  • v
  • w
  • x
  • y
  • z
  • num0
  • num1
  • num2
  • num3
  • num4
  • num5
  • num6
  • num7
  • num8
  • num9
  • *
  • +
  • -
  • numdel
  • /
  • f1
  • f2
  • f3
  • f4
  • f5
  • f6
  • f7
  • f8
  • f9
  • f10
  • f11
  • f12
  • numlock
  • scrolllock
  • ;
  • semicolon
  • equal
  • =
  • ,
  • comma
  • dash
  • .
  • period
  • forwardslash
  • grave
  • [
  • openbracket
  • backslash
  • ]
  • closebracket
  • quote
  • dpadLeft
  • dpadRight
  • dpadUp
  • dpadDown
  • dpadCenter

Details

none

None

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:391
back

The back key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:401

The menu key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:409
backspace

The backspace key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:418
tab

The tab key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:427
enter

The enter key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:436
shift

The shift key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:445
ctrl

The ctrl key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:454
alt

The alt key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:463
pause

The pause key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:472
capslock

The caps lock key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:481
escape

The esc key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:490
space

The space key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:499
pageup

The page up key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:508
pagedown

The page down key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:517
end

The end key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:526
home

The home key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:535
left

The left key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:544
up

The up key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:553

The right key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:562
down

The down key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:571
select

The select key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:580
insert

The insert key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:589
Delete

The Delete key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:598
0

The '0' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:607
1

The '1' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:616
2

The '2' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:625
3

The '3' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:634
4

The '4' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:643
5

The '5' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:652
6

The '6' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:661
7

The '7' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:670
8

The '8' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:679
9

The '9' key on the top of the alphanumeric keyboard.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:688
a

The a key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:697
b

The b key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:706
c

The c key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:715
d

The d key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:724
e

The e key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:733
f

The f key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:742
g

The g key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:751
h

The h key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:760
i

The i key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:769
j

The j key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:778
k

The k key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:787
l

The l key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:796
m

The m key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:805
n

The n key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:814
o

The o key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:823
p

The p key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:832
q

The q key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:841
r

The r key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:850
s

The s key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:859
t

The t key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:868
u

The u key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:877
v

The v key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:886
w

The w key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:895
x

The x key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:904
y

The y key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:913
z

The z key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:922
num0

The numeric keypad 0

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:931
num1

The numeric keypad 1

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:940
num2

The numeric keypad 2

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:949
num3

The numeric keypad 3

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:958
num4

The numeric keypad 4

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:967
num5

The numeric keypad 5

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:976
num6

The numeric keypad 6

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:985
num7

The numeric keypad 7

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:994
num8

The numeric keypad 8

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1003
num9

The numeric keypad 9

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1012
*

The numeric keypad '*'

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1021
+

The numeric keypad '+'

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1030
-

The numeric keypad '-'

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1039
numdel

The numeric keypad 'delete'

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1048
/

The numeric keypad '/'

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1057
f1

The F1 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1066
f2

The F2 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1075
f3

The F3 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1084
f4

The F4 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1093
f5

The F5 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1102
f6

The F6 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1111
f7

The F7 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1120
f8

The F8 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1129
f9

The F9 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1138
f10

The F10 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1147
f11

The F11 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1156
f12

The F12 function key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1165
numlock

The numlock key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1174
scrolllock

The scroll lock key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1183
;

The ';' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1192
semicolon

The ';' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1201
equal

The '=' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1210
=

The '=' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1219
,

The ',' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1228
comma

The ',' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1237
dash

The dash '-' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1246
.

The '.' key.

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1255
period

The '.' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1264
forwardslash

The forward slash key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1273
grave

The grave key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1282
[

The '[' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1291
openbracket

The '[' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1300
backslash

The '\' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1309
]

The ']' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1318
closebracket

The ']' key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1327
quote

The quote key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1336
dpadLeft

The dpad left key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1347
dpadRight

The dpad right key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1356
dpadUp

The dpad up key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1365
dpadDown

The dpad down key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1374
dpadCenter

The dpad center key

meta description
Type Number
Defined in cocos2d/core/platform/CCMacro.js:1383

results matching ""

    No results matching ""