Called when key handling reports an unrecoverable input error.
Gets the current input method state.
Returns display names for keys in the current layout and modifier state.
Whether the Shift modifier is active.
Whether the Control modifier is active.
Whether the Alt modifier is active.
A map from key character to its Tibetan display name.
Handles an already translated key input.
The key is delegated to KeyHandler, and any resulting state transition is applied through this controller.
The key to handle.
True if the key was handled.
Converts a DOM keyboard event into an internal Key and handles it.
The keyboard event.
True if the event was handled.
Converts simple keyboard state into an internal Key and handles it.
The character button pressed.
Whether Shift is active.
Whether Control is active.
Whether Alt is active.
True if the key was handled.
Resets the controller to EmptyState.
If composition is still active, the current composing buffer is committed before the UI is cleared.
Switches the active keyboard layout to the one with the given identifier.
Active composition is committed and the controller is reset.
The layout identifier (e.g. 'wylie').
Acts as the centralized coordinator for input method operations.
It manages the underlying input state, translates raw device events using a
KeyHandler, mutates state, and updates theInputUIappropriately.