Class KeyboardLayoutService Properties Private Optional current LayoutProtected Optional Readonly key ValidatorProtected keyboard Layout ChangedProtected Readonly layout Change NotifierProtected Readonly layout ProviderMethods Private add Key Mappingadd Key Mapping( key2KeyCode: KeyCode [] , mappedKey: Key , value: string , shift: boolean , alt: boolean ) : void Parameters key2KeyCode: KeyCode [] mappedKey: Key value: string shift: boolean alt: boolean Returns void Private add Windows Key Mappingadd Windows Key Mapping( key2KeyCode: KeyCode [] , mappedKey: Key , vkey: string , value: string ) : void Parameters key2KeyCode: KeyCode [] mappedKey: Key vkey: string value: string Returns void Protected get Character Indexget Character Index( key: Key , shift?: boolean ) : number get Keyboard Character get Keyboard Character( key: Key ) : string initialize initialize( ) : Promise < void > Protected should Include Keyshould Include Key( code: string ) : boolean Parameters Returns boolean Protected transform Key CodeParameters Returns undefined | KeyCode Protected transform Native Layoutvalidate Key Code validate Key Code( keyCode: KeyCode ) : void Legend Namespace Variable Function Function with type parameter Type alias Type alias with type parameter Class Class with type parameter Constructor Method Interface Interface with type parameter Protected property Protected method Private property Private method Settings Theme OS Light Dark
Return the character shown on the user's keyboard for the given key. Use this to determine UI representations of keybindings.