Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KeyboardLayoutService

Hierarchy

  • KeyboardLayoutService

Index

Constructors

constructor

Properties

Private Optional currentLayout

currentLayout: KeyboardLayout

Protected Optional Readonly keyValidator

keyValidator: KeyValidator

Protected keyboardLayoutChanged

keyboardLayoutChanged: Emitter<KeyboardLayout> = ...

Protected Readonly layoutChangeNotifier

layoutChangeNotifier: KeyboardLayoutChangeNotifier

Protected Readonly layoutProvider

layoutProvider: KeyboardLayoutProvider

Accessors

onKeyboardLayoutChanged

Methods

Private addKeyMapping

  • addKeyMapping(key2KeyCode: KeyCode[], mappedKey: Key, value: string, shift: boolean, alt: boolean): void

Private addWindowsKeyMapping

  • addWindowsKeyMapping(key2KeyCode: KeyCode[], mappedKey: Key, vkey: string, value: string): void

Protected getCharacterIndex

  • getCharacterIndex(key: Key, shift?: boolean): number

getKeyboardCharacter

  • getKeyboardCharacter(key: Key): string

initialize

  • initialize(): Promise<void>

resolveKeyCode

Protected shouldIncludeKey

  • shouldIncludeKey(code: string): boolean

Protected transformKeyCode

Protected transformNativeLayout

Protected updateLayout

validateKeyCode

  • validateKeyCode(keyCode: KeyCode): void