Returns the display names for all keys in the given 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 display name.
Handles a key event within the given state.
The key to handle.
The current input state.
Called with the new state when a transition occurs.
Called when an unrecoverable input error is detected.
true if the key was consumed by the layout.
Switches the active layout to the one identified by id.
If no layout with the given id is registered, the current layout is kept.
The layout identifier (e.g. 'sambhota_keymap_one').
Bridges key events with the active keyboard layout.
KeyHandler owns a single Layout instance and delegates all key-handling and key-name queries to it. The active layout can be changed at runtime via selectLayoutById.