Skip to content

Commit 77ce41a

Browse files
committed
Change line ordering
1 parent baed361 commit 77ce41a

File tree

3 files changed

+154
-1
lines changed

3 files changed

+154
-1
lines changed

ui/src/keyboardLayouts.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { chars as chars_en_US } from "@/keyboardLayouts/en_US"
2+
import { chars as chars_de_DE } from "@/keyboardLayouts/de_DE"
23
import { chars as chars_fr_CH } from "@/keyboardLayouts/fr_CH"
34
import { chars as chars_de_CH } from "@/keyboardLayouts/de_CH"
45

@@ -7,12 +8,14 @@ export type KeyCombo = KeyInfo & { deadKey?: boolean, accentKey?: KeyInfo }
78

89
export const layouts = {
910
"en_US": "English (US)",
11+
"de_DE": "German",
1012
"fr_CH": "Swiss French",
1113
"de_CH": "Swiss German"
1214
} as Record<string, string>;
1315

1416
export const chars = {
1517
"en_US": chars_en_US,
18+
"de_DE": chars_de_DE,
1619
"fr_CH": chars_fr_CH,
1720
"de_CH": chars_de_CH,
1821
} as Record<string, Record <string, KeyCombo>>

ui/src/keyboardLayouts/de_CH.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const chars = {
6969
"ë": { key: "KeyE", accentKey: keyTrema },
7070
"ê": { key: "KeyE", accentKey: keyHat },
7171
"ẽ": { key: "KeyE", accentKey: keyTilde },
72+
"€": { key: "KeyE", altRight: true },
7273
f: { key: "KeyF" },
7374
g: { key: "KeyG" },
7475
h: { key: "KeyH" },
@@ -155,7 +156,6 @@ export const chars = {
155156
"<": { key: "IntlBackslash" },
156157
">": { key: "IntlBackslash", shift: true },
157158
"\\": { key: "IntlBackslash", altRight: true },
158-
"€": { key: "KeyE", altRight: true },
159159
" ": { key: "Space" },
160160
"\n": { key: "Enter" },
161161
Enter: { key: "Enter" },

ui/src/keyboardLayouts/de_DE.ts

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

0 commit comments

Comments
 (0)