mirror of https://github.com/jetkvm/kvm.git
16 lines
507 B
TypeScript
16 lines
507 B
TypeScript
import { chars as chars_en_US } from "@/keyboardLayouts/en_US"
|
|
import { chars as chars_de_CH } from "@/keyboardLayouts/de_CH"
|
|
|
|
type KeyInfo = { key: string | number; shift?: boolean, altRight?: boolean }
|
|
export type KeyCombo = KeyInfo & { deadKey?: boolean, accentKey?: KeyInfo }
|
|
|
|
export const layouts = {
|
|
"en_US": "English (US)",
|
|
"de_CH": "Swiss German"
|
|
} as Record<string, string>;
|
|
|
|
export const chars = {
|
|
"en_US": chars_en_US,
|
|
"de_CH": chars_de_CH,
|
|
} as Record<string, Record <string, KeyCombo>>
|