/
transkey.lua
66 lines (55 loc) · 1.22 KB
/
transkey.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
--
-- This table translates keysysms keys to chars
--
local transkey = {
backquote = '`',
leftbracket = '[',
rightbracket = ']',
--delete = 'del',
comma = ',',
period = '.',
slash = '/',
backslash = '\\',
equals = '=',
colon = ':',
semicolon = ';',
quote = "'",
kp_multiply = 'numpad*',
kp_divide = 'numpad/',
kp_plus = 'numpad+',
kp_minus = 'numpad-',
kp_period = 'numpad.',
kp0 = 'numpad0',
kp1 = 'numpad1',
kp2 = 'numpad2',
kp3 = 'numpad3',
kp4 = 'numpad4',
kp5 = 'numpad5',
kp6 = 'numpad6',
kp7 = 'numpad7',
kp8 = 'numpad8',
kp9 = 'numpad9',
lshift = 'shift',
rshift = 'shift',
lctrl = 'ctrl',
rctrl = 'ctrl',
lalt = 'alt',
ralt = 'alt',
-- for french keyboard
--groupping
ampersand = '&',
world_73 = '0x0e9',
quotedbl = '"',
leftparen = '(',
minus = '-',
world_72 = '0x0e8',
underscore = '_',
world_71 = '0x0e7',
world_64 = '0x0e0',
--other
rightparen = ')',
world_89 = '0x0f9',
dollar = '$',
asterisk = '*',
}
return transkey