Class KeyboardLayoutService
Properties
Private Optional currentLayout
Protected Optional Readonly keyValidator
Protected keyboardLayoutChanged
Protected Readonly layoutChangeNotifier
Protected Readonly layoutProvider
Methods
Private addKeyMapping
addKeyMapping( 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 addWindowsKeyMapping
addWindowsKeyMapping( key2KeyCode: KeyCode [] , mappedKey: Key , vkey: string , value: string ) : void
Parameters
key2KeyCode: KeyCode []
mappedKey: Key
vkey: string
value: string
Returns void
Protected getCharacterIndex
getCharacterIndex( key: Key , shift?: boolean ) : number
Parameters
Returns number
getKeyboardCharacter
getKeyboardCharacter( key: Key ) : string
Parameters
Returns string
initialize
initialize( ) : Promise < void >
Protected shouldIncludeKey
shouldIncludeKey( code: string ) : boolean
Parameters
Returns boolean
Protected transformKeyCode
Parameters
Returns undefined | KeyCode
Protected transformNativeLayout
validateKeyCode
validateKeyCode( 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
Return the character shown on the user's keyboard for the given key. Use this to determine UI representations of keybindings.