mirror of https://github.com/jetkvm/kvm.git
20 lines
503 B
TypeScript
20 lines
503 B
TypeScript
import {keysUKApple, charsUKApple, modifiersUKApple } from './layouts/uk_apple';
|
|
import {keysUS, charsUS, modifiersUS } from './layouts/us';
|
|
|
|
export function getKeyboardMappings(layout: string) {
|
|
switch (layout) {
|
|
case "uk_apple":
|
|
return {
|
|
keys: keysUKApple,
|
|
chars: charsUKApple,
|
|
modifiers: modifiersUKApple,
|
|
};
|
|
case "us":
|
|
default:
|
|
return {
|
|
keys: keysUS,
|
|
chars: charsUS,
|
|
modifiers: modifiersUS,
|
|
};
|
|
}
|
|
} |