Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KeyboardTester

Holds score values for all known keyboard layouts. Scores are updated by comparing key codes with the corresponding character produced by the user's keyboard.

Hierarchy

  • KeyboardTester

Index

Constructors

constructor

Properties

Readonly candidates

candidates: KeyboardLayoutData[]

Readonly scores

scores: number[]

Private Readonly testedInputs

testedInputs: Map<string, string> = ...

topScore

topScore: number = 0

Accessors

inputCount

  • get inputCount(): number

Methods

getState

reset

  • reset(): void

setState

Protected testCandidate

updateScores