Skip to content

Commit e4ddc95

Browse files
committed
Add Italian
1 parent 2f048ef commit e4ddc95

File tree

2 files changed

+114
-0
lines changed

2 files changed

+114
-0
lines changed

ui/src/keyboardLayouts.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { chars as chars_en_UK } from "@/keyboardLayouts/en_UK"
22
import { chars as chars_en_US } from "@/keyboardLayouts/en_US"
33
import { chars as chars_fr_FR } from "@/keyboardLayouts/fr_FR"
44
import { chars as chars_de_DE } from "@/keyboardLayouts/de_DE"
5+
import { chars as chars_it_IT } from "@/keyboardLayouts/it_IT"
56
import { chars as chars_nb_NO } from "@/keyboardLayouts/nb_NO"
67
import { chars as chars_es_ES } from "@/keyboardLayouts/es_ES"
78
import { chars as chars_sv_SE } from "@/keyboardLayouts/sv_SE"
@@ -16,6 +17,7 @@ export const layouts = {
1617
"en_US": "English (US)",
1718
"fr_FR": "French",
1819
"de_DE": "German",
20+
"it_IT": "Italian",
1921
"nb_NO": "Norwegian",
2022
"es_ES": "Spanish",
2123
"sv_SE": "Swedish",
@@ -28,6 +30,7 @@ export const chars = {
2830
"en_US": chars_en_US,
2931
"fr_FR": chars_fr_FR,
3032
"de_DE": chars_de_DE,
33+
"it_IT": chars_it_IT,
3134
"nb_NO": chars_nb_NO,
3235
"es_ES": chars_es_ES,
3336
"sv_SE": chars_sv_SE,

ui/src/keyboardLayouts/it_IT.ts

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
import { KeyCombo } from "../keyboardLayouts"
2+
3+
export const chars = {
4+
A: { key: "KeyA", shift: true },
5+
B: { key: "KeyB", shift: true },
6+
C: { key: "KeyC", shift: true },
7+
D: { key: "KeyD", shift: true },
8+
E: { key: "KeyE", shift: true },
9+
F: { key: "KeyF", shift: true },
10+
G: { key: "KeyG", shift: true },
11+
H: { key: "KeyH", shift: true },
12+
I: { key: "KeyI", shift: true },
13+
J: { key: "KeyJ", shift: true },
14+
K: { key: "KeyK", shift: true },
15+
L: { key: "KeyL", shift: true },
16+
M: { key: "KeyM", shift: true },
17+
N: { key: "KeyN", shift: true },
18+
O: { key: "KeyO", shift: true },
19+
P: { key: "KeyP", shift: true },
20+
Q: { key: "KeyQ", shift: true },
21+
R: { key: "KeyR", shift: true },
22+
S: { key: "KeyS", shift: true },
23+
T: { key: "KeyT", shift: true },
24+
U: { key: "KeyU", shift: true },
25+
V: { key: "KeyV", shift: true },
26+
W: { key: "KeyW", shift: true },
27+
X: { key: "KeyX", shift: true },
28+
Y: { key: "KeyY", shift: true },
29+
Z: { key: "KeyZ", shift: true },
30+
a: { key: "KeyA" },
31+
b: { key: "KeyB" },
32+
c: { key: "KeyC" },
33+
d: { key: "KeyD" },
34+
e: { key: "KeyE" },
35+
"€": { key: "KeyE", altRight: true },
36+
f: { key: "KeyF" },
37+
g: { key: "KeyG" },
38+
h: { key: "KeyH" },
39+
i: { key: "KeyI" },
40+
j: { key: "KeyJ" },
41+
k: { key: "KeyK" },
42+
l: { key: "KeyL" },
43+
m: { key: "KeyM" },
44+
n: { key: "KeyN" },
45+
o: { key: "KeyO" },
46+
p: { key: "KeyP" },
47+
q: { key: "KeyQ" },
48+
r: { key: "KeyR" },
49+
s: { key: "KeyS" },
50+
t: { key: "KeyT" },
51+
u: { key: "KeyU" },
52+
v: { key: "KeyV" },
53+
w: { key: "KeyW" },
54+
x: { key: "KeyX" },
55+
y: { key: "KeyY" },
56+
z: { key: "KeyZ" },
57+
"\\": { key: "Backquote" },
58+
"|": { key: "Backquote", shift: true },
59+
1: { key: "Digit1" },
60+
"!": { key: "Digit1", shift: true },
61+
2: { key: "Digit2" },
62+
"\"": { key: "Digit2", shift: true },
63+
3: { key: "Digit3" },
64+
"£": { key: "Digit3", shift: true },
65+
4: { key: "Digit4" },
66+
"$": { key: "Digit4", shift: true },
67+
5: { key: "Digit5" },
68+
"%": { key: "Digit5", shift: true },
69+
6: { key: "Digit6" },
70+
"&": { key: "Digit6", shift: true },
71+
7: { key: "Digit7" },
72+
"/": { key: "Digit7", shift: true },
73+
8: { key: "Digit8" },
74+
"(": { key: "Digit8", shift: true },
75+
9: { key: "Digit9" },
76+
")": { key: "Digit9", shift: true },
77+
0: { key: "Digit0" },
78+
"=": { key: "Digit0", shift: true },
79+
"'": { key: "Minus" },
80+
"?": { key: "Minus", shift: true },
81+
"ì": { key: "Equal" },
82+
"^": { key: "Equal", shift: true },
83+
"è": { key: "BracketLeft" },
84+
"é": { key: "BracketLeft", shift: true },
85+
"[": { key: "BracketLeft", altRight: true },
86+
"{": { key: "BracketLeft", shift: true, altRight: true },
87+
"+": { key: "BracketRight" },
88+
"*": { key: "BracketRight", shift: true },
89+
"]": { key: "BracketRight", altRight: true },
90+
"}": { key: "BracketRight", shift: true, altRight: true },
91+
"ò": { key: "Semicolon" },
92+
"ç": { key: "Semicolon", shift: true },
93+
"@": { key: "Semicolon", altRight: true },
94+
"à": { key: "Quote" },
95+
"°": { key: "Quote", shift: true },
96+
"#": { key: "Quote", altRight: true },
97+
"ù": { key: "Backslash" },
98+
"§": { key: "Backslash", shift: true },
99+
",": { key: "Comma" },
100+
";": { key: "Comma", shift: true },
101+
".": { key: "Period" },
102+
":": { key: "Period", shift: true },
103+
"-": { key: "Slash" },
104+
"_": { key: "Slash", shift: true },
105+
"<": { key: "IntlBackslash" },
106+
">": { key: "IntlBackslash", shift: true },
107+
" ": { key: "Space" },
108+
"\n": { key: "Enter" },
109+
Enter: { key: "Enter" },
110+
Tab: { key: "Tab" },
111+
} as Record<string, KeyCombo>;

0 commit comments

Comments
 (0)