File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { chars as chars_en_US } from "@/keyboardLayouts/en_US"
2
+ import { chars as chars_fr_CH } from "@/keyboardLayouts/fr_CH"
2
3
import { chars as chars_de_CH } from "@/keyboardLayouts/de_CH"
3
4
4
5
type KeyInfo = { key : string | number ; shift ?: boolean , altRight ?: boolean }
5
6
export type KeyCombo = KeyInfo & { deadKey ?: boolean , accentKey ?: KeyInfo }
6
7
7
8
export const layouts = {
8
9
"en_US" : "English (US)" ,
10
+ "fr_CH" : "Swiss French" ,
9
11
"de_CH" : "Swiss German"
10
12
} as Record < string , string > ;
11
13
12
14
export const chars = {
13
15
"en_US" : chars_en_US ,
16
+ "fr_CH" : chars_fr_CH ,
14
17
"de_CH" : chars_de_CH ,
15
18
} as Record < string , Record < string , KeyCombo > >
Original file line number Diff line number Diff line change
1
+ import { KeyCombo } from "../keyboardLayouts"
2
+ import { chars as chars_de_CH } from "./de_CH"
3
+
4
+ export const chars = {
5
+ ...chars_de_CH ,
6
+ "è" : { key : "BracketLeft" } ,
7
+ "ü" : { key : "BracketLeft" , shift : true } ,
8
+ "é" : { key : "Semicolon" } ,
9
+ "ö" : { key : "Semicolon" , shift : true } ,
10
+ "à" : { key : "Quote" } ,
11
+ "ä" : { key : "Quote" , shift : true } ,
12
+ } as Record < string , KeyCombo > ;
You can’t perform that action at this time.
0 commit comments