Template repo for tiny cross-platform apps that can be modified on phone, tablet or computer.
1{
2 {type='rows', width=800, default={font={size=21}, line_height=35},
3 {type='text', font={size=28}, line_height=50,
4 {'Car@{Lua Carousel} > handlers@{handlers} > keyboard',
5 attrs={
6 Car={target='--carousel'},
7 handlers={target='--car-handler'},
8 }},
9 },
10 {type='filler', height=15},
11 {type='text', 'Defina essas funções para que sejam chamadas em eventos de teclado:'},
12 {type='text', 'function car.keychord_press(chord, key)', font={size=24}},
13 {type='text', " - chord: combinações de modificadores e tecla separadas por '-'", line_height=20},
14 {type='text', " modificadores: 'C': ctrl; 'M': alt; 'S': shift; 's': super/cmd/windows nessa ordem", line_height=20},
15 {type='text', " ex: C-z (ctrl + z); M-b (alt + b); C-M-k (ctrl + alt + k)"},
16 {type='text', 'function car.text_input(t)', font={size=24}},
17 {type='text', ' - t: texto Unicode da tecla pressionada (incluindo shift, etc.)'},
18 {type='text', 'function car.key_release(key)', font={size=24}},
19 }
20}