Skip to content

Commit 9698564

Browse files
committed
Add Belgisch Nederlands
1 parent d075915 commit 9698564

File tree

2 files changed

+170
-0
lines changed

2 files changed

+170
-0
lines changed

ui/src/keyboardLayouts.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { chars as chars_fr_BE, name as name_fr_BE } from "@/keyboardLayouts/fr_BE"
12
import { chars as chars_cs_CZ, name as name_cs_CZ } from "@/keyboardLayouts/cs_CZ"
23
import { chars as chars_en_UK, name as name_en_UK } from "@/keyboardLayouts/en_UK"
34
import { chars as chars_en_US, name as name_en_US } from "@/keyboardLayouts/en_US"
@@ -14,6 +15,7 @@ type KeyInfo = { key: string | number; shift?: boolean, altRight?: boolean }
1415
export type KeyCombo = KeyInfo & { deadKey?: boolean, accentKey?: KeyInfo }
1516

1617
export const layouts: Record<string, string> = {
18+
be_FR: name_fr_BE,
1719
cs_CZ: name_cs_CZ,
1820
en_UK: name_en_UK,
1921
en_US: name_en_US,
@@ -28,6 +30,7 @@ export const layouts: Record<string, string> = {
2830
}
2931

3032
export const chars: Record<string, Record<string, KeyCombo>> = {
33+
be_FR: chars_fr_BE,
3134
cs_CZ: chars_cs_CZ,
3235
en_UK: chars_en_UK,
3336
en_US: chars_en_US,

ui/src/keyboardLayouts/fr_BE.ts

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
import { KeyCombo } from "../keyboardLayouts"
2+
3+
export const name = "Belgisch Nederlands";
4+
5+
const keyTrema = { key: "BracketLeft", shift: true } // tréma (umlaut), two dots placed above a vowel
6+
const keyHat = { key: "BracketLeft" } // accent circonflexe (accent hat), mark ^ placed above the letter
7+
const keyAcute = { key: "Semicolon", altRight: true } // accent aigu (acute accent), mark ´ placed above the letter
8+
const keyGrave = { key: "Quote", shift: true } // accent grave, mark ` placed above the letter
9+
const keyTilde = { key: "Slash", altRight: true } // tilde, mark ~ placed above the letter
10+
11+
export const chars = {
12+
A: { key: "KeyQ", shift: true },
13+
"Ä": { key: "KeyQ", shift: true, accentKey: keyTrema },
14+
"Â": { key: "KeyQ", shift: true, accentKey: keyHat },
15+
"Á": { key: "KeyQ", shift: true, accentKey: keyAcute },
16+
"À": { key: "KeyQ", shift: true, accentKey: keyGrave },
17+
"Ã": { key: "KeyQ", shift: true, accentKey: keyTilde },
18+
B: { key: "KeyB", shift: true },
19+
C: { key: "KeyC", shift: true },
20+
D: { key: "KeyD", shift: true },
21+
E: { key: "KeyE", shift: true },
22+
"Ë": { key: "KeyE", shift: true, accentKey: keyTrema },
23+
"Ê": { key: "KeyE", shift: true, accentKey: keyHat },
24+
"É": { key: "KeyE", shift: true, accentKey: keyAcute },
25+
"È": { key: "KeyE", shift: true, accentKey: keyGrave },
26+
"Ẽ": { key: "KeyE", shift: true, accentKey: keyTilde },
27+
F: { key: "KeyF", shift: true },
28+
G: { key: "KeyG", shift: true },
29+
H: { key: "KeyH", shift: true },
30+
I: { key: "KeyI", shift: true },
31+
"Ï": { key: "KeyI", shift: true, accentKey: keyTrema },
32+
"Î": { key: "KeyI", shift: true, accentKey: keyHat },
33+
"Í": { key: "KeyI", shift: true, accentKey: keyAcute },
34+
"Ì": { key: "KeyI", shift: true, accentKey: keyGrave },
35+
"Ĩ": { key: "KeyI", shift: true, accentKey: keyTilde },
36+
J: { key: "KeyJ", shift: true },
37+
K: { key: "KeyK", shift: true },
38+
L: { key: "KeyL", shift: true },
39+
M: { key: "Semicolon", shift: true },
40+
N: { key: "KeyN", shift: true },
41+
O: { key: "KeyO", shift: true },
42+
"Ö": { key: "KeyO", shift: true, accentKey: keyTrema },
43+
"Ô": { key: "KeyO", shift: true, accentKey: keyHat },
44+
"Ó": { key: "KeyO", shift: true, accentKey: keyAcute },
45+
"Ò": { key: "KeyO", shift: true, accentKey: keyGrave },
46+
"Õ": { key: "KeyO", shift: true, accentKey: keyTilde },
47+
P: { key: "KeyP", shift: true },
48+
Q: { key: "KeyA", shift: true },
49+
R: { key: "KeyR", shift: true },
50+
S: { key: "KeyS", shift: true },
51+
T: { key: "KeyT", shift: true },
52+
U: { key: "KeyU", shift: true },
53+
"Ü": { key: "KeyU", shift: true, accentKey: keyTrema },
54+
"Û": { key: "KeyU", shift: true, accentKey: keyHat },
55+
"Ú": { key: "KeyU", shift: true, accentKey: keyAcute },
56+
"Ù": { key: "KeyU", shift: true, accentKey: keyGrave },
57+
"Ũ": { key: "KeyU", shift: true, accentKey: keyTilde },
58+
V: { key: "KeyV", shift: true },
59+
W: { key: "KeyW", shift: true },
60+
X: { key: "KeyX", shift: true },
61+
Y: { key: "KeyZ", shift: true },
62+
Z: { key: "KeyY", shift: true },
63+
a: { key: "KeyQ" },
64+
"ä": { key: "KeyQ", accentKey: keyTrema },
65+
"â": { key: "KeyQ", accentKey: keyHat },
66+
"á": { key: "KeyQ", accentKey: keyAcute },
67+
"ã": { key: "KeyQ", accentKey: keyTilde },
68+
b: { key: "KeyB" },
69+
c: { key: "KeyC" },
70+
d: { key: "KeyD" },
71+
e: { key: "KeyE" },
72+
"ë": { key: "KeyE", accentKey: keyTrema },
73+
"ê": { key: "KeyE", accentKey: keyHat },
74+
"ẽ": { key: "KeyE", accentKey: keyTilde },
75+
"€": { key: "KeyE", altRight: true },
76+
f: { key: "KeyF" },
77+
g: { key: "KeyG" },
78+
h: { key: "KeyH" },
79+
i: { key: "KeyI" },
80+
"ï": { key: "KeyI", accentKey: keyTrema },
81+
"î": { key: "KeyI", accentKey: keyHat },
82+
"í": { key: "KeyI", accentKey: keyAcute },
83+
"ì": { key: "KeyI", accentKey: keyGrave },
84+
"ĩ": { key: "KeyI", accentKey: keyTilde },
85+
j: { key: "KeyJ" },
86+
k: { key: "KeyK" },
87+
l: { key: "KeyL" },
88+
m: { key: "Semicolon" },
89+
n: { key: "KeyN" },
90+
o: { key: "KeyO" },
91+
"ö": { key: "KeyO", accentKey: keyTrema },
92+
"ó": { key: "KeyO", accentKey: keyAcute },
93+
"ô": { key: "KeyO", accentKey: keyHat },
94+
"ò": { key: "KeyO", accentKey: keyGrave },
95+
"õ": { key: "KeyO", accentKey: keyTilde },
96+
p: { key: "KeyP" },
97+
q: { key: "KeyA" },
98+
r: { key: "KeyR" },
99+
s: { key: "KeyS" },
100+
t: { key: "KeyT" },
101+
u: { key: "KeyU" },
102+
"ü": { key: "KeyU", accentKey: keyTrema },
103+
"û": { key: "KeyU", accentKey: keyHat },
104+
"ú": { key: "KeyU", accentKey: keyAcute },
105+
"ũ": { key: "KeyU", accentKey: keyTilde },
106+
v: { key: "KeyV" },
107+
w: { key: "KeyW" },
108+
x: { key: "KeyX" },
109+
y: { key: "KeyZ" },
110+
z: { key: "KeyY" },
111+
"²": { key: "Backquote" },
112+
"³": { key: "Backquote", shift: true },
113+
"&": { key: "Digit1" },
114+
1: { key: "Digit1", shift: true },
115+
"|": { key: "Digit1", altRight: true },
116+
"é": { key: "Digit2" },
117+
2: { key: "Digit2", shift: true },
118+
"@": { key: "Digit2", altRight: true },
119+
"\"": { key: "Digit3" },
120+
3: { key: "Digit3", shift: true },
121+
"#": { key: "Digit3", altRight: true },
122+
"'": { key: "Digit4" },
123+
4: { key: "Digit4", shift: true },
124+
"(": { key: "Digit5" },
125+
5: { key: "Digit5", shift: true },
126+
"§": { key: "Digit6" },
127+
6: { key: "Digit6", shift: true },
128+
"^": { key: "Digit6", altRight: true },
129+
"è": { key: "Digit7" },
130+
7: { key: "Digit7", shift: true },
131+
"!": { key: "Digit8" },
132+
8: { key: "Digit8", shift: true },
133+
"ç": { key: "Digit9" },
134+
9: { key: "Digit9", shift: true },
135+
"{": { key: "Digit9", altRight: true },
136+
"à": { key: "Digit0" },
137+
0: { key: "Digit0", shift: true },
138+
"}": { key: "Digit0", altRight: true },
139+
")": { key: "Minus" },
140+
"°": { key: "Minus", shift: true },
141+
"-": { key: "Equal", deadKey: true },
142+
"_": { key: "Equal", shift: true },
143+
"[": { key: "BracketLeft", altRight: true },
144+
"$": { key: "BracketRight" },
145+
"*": { key: "BracketRight", altRight: true },
146+
"]": { key: "BracketRight", altRight: true },
147+
"ù": { key: "Quote" },
148+
"%": { key: "Quote", shift: true },
149+
"µ": { key: "Backslash" },
150+
"£": { key: "Backslash", shift: true },
151+
",": { key: "KeyM" },
152+
"?": { key: "KeyM", shift: true },
153+
";": { key: "Comma" },
154+
".": { key: "Comma", shift: true },
155+
":": { key: "Period" },
156+
"/": { key: "Period", shift: true },
157+
"=": { key: "Slash" },
158+
"+": { key: "Slash", shift: true },
159+
"~": { key: "Slash", deadKey: true },
160+
"<": { key: "IntlBackslash" },
161+
">": { key: "IntlBackslash", shift: true },
162+
"\\": { key: "IntlBackslash", altRight: true },
163+
" ": { key: "Space" },
164+
"\n": { key: "Enter" },
165+
Enter: { key: "Enter" },
166+
Tab: { key: "Tab" },
167+
} as Record<string, KeyCombo>;

0 commit comments

Comments
 (0)