alias Key

Alias Definition

Terminal::TK

Defined in:

wif/frontend.cr

Constant Summary

A = 4
ALT = 114
APOSTROPHE = 52
B = 5
BACKSLASH = 49
BACKSPACE = 42
C = 6
CLOSE = 224

Other events.

COMMA = 54
CONTROL = 113
D = 7
DELETE = 76
DOWN = 81
E = 8
ENTER = 40
EQUALS = 46
ESCAPE = 41
F = 9
F1 = 58
F10 = 67
F11 = 68
F12 = 69
F2 = 59
F3 = 60
F4 = 61
F5 = 62
F6 = 63
F7 = 64
F8 = 65
F9 = 66
G = 10
GRAVE = 53
H = 11
HOME = 74
I = 12
INSERT = 73
J = 13
K = 14
K_0 = 39
K_1 = 30
K_2 = 31
K_3 = 32
K_4 = 33
K_5 = 34
K_6 = 35
K_7 = 36
K_8 = 37
K_9 = 38
K_END = 77
KEY_RELEASED = 256

If key was released instead of pressed, it's code will be OR'ed with VK_KEY_RELEASED.

KP_0 = 98
KP_1 = 89
KP_2 = 90
KP_3 = 91
KP_4 = 92
KP_5 = 93
KP_6 = 94
KP_7 = 95
KP_8 = 96
KP_9 = 97
KP_DIVIDE = 84
KP_ENTER = 88
KP_MINUS = 86
KP_MULTIPLY = 85
KP_PERIOD = 99
KP_PLUS = 87
L = 15
LBRACKET = 47
LEFT = 80
M = 16
MINUS = 45
MOUSE_CLICKS = 140
MOUSE_LEFT = 128

Mouse events/states.

MOUSE_MIDDLE = 130
MOUSE_MOVE = 133
MOUSE_PIXEL_X = 137
MOUSE_PIXEL_Y = 138
MOUSE_RIGHT = 129
MOUSE_SCROLL = 134
MOUSE_WHEEL = 139
MOUSE_X = 135
MOUSE_X1 = 131
MOUSE_X2 = 132
MOUSE_Y = 136
N = 17
O = 18
P = 19
PAGEDOWN = 78
PAGEUP = 75
PAUSE = 72
PERIOD = 55
Q = 20
R = 21
RBRACKET = 48
RESIZED = 225
RETURN = 40
RIGHT = 79
S = 22
SEMICOLON = 51
SHIFT = 112
SLASH = 56
SPACE = 44
T = 23
TAB = 43
U = 24
UP = 82
V = 25
W = 26
X = 27
Y = 28
Z = 29