KeyCode List

From CopperCube Wiki
Jump to navigation Jump to search

KeyCode values can be returned when using the ccbRegisterKeyDownEvent method. This helps to add custom functionality to a very specific key on the keyboard. For more information, please read the documentation: JavaScript Scripting reference > ccbRegisterKeyDownEvent.

CopperCube 6 (Windows)

9   Tab
13  Enter
19  Pause/Break
32  Space 

33  Page up
34  Page down
35  End
36  Home

37  Left arrow key
38  Up arrow key
39  Right arrow key
40  Down arrow key

45  Insert
46  Delete

48  0 (number)
49  1 (number)
50  2 (number)
51  3 (number)
52  4 (number)
53  5 (number)
54  6 (number)
55  7 (number)
56  8 (number)
57  9 (number)

96  0 (number) on the numpad
97  1 (number) on the numpad
98  2 (number) on the numpad
99  3 (number) on the numpad
100 4 (number) on the numpad
101 5 (number) on the numpad
102 6 (number) on the numpad
103 7 (number) on the numpad
104 8 (number) on the numpad
105 9 (number) on the numpad

160 Left Shift key
161 Right Shift key