Interface KeyboardLayout

interface KeyboardLayout {
    code2Character: {
        [code: string]: string;
    };
    key2KeyCode: KeyCode[];
}

Properties

code2Character: {
    [code: string]: string;
}

Mapping of KeyboardEvent codes to the characters shown on the user's keyboard for the respective keys.

Type declaration

  • [code: string]: string
key2KeyCode: KeyCode[]

Mapping of standard US keyboard keys to the actual key codes to use. See KeyboardLayoutService.getCharacterIndex for the index computation.