textmode.js / Textmodifier / keyTyped
Method: keyTyped()
ts
keyTyped(callback): void;Register the single-callback handler for printable character input.
This only fires for keys that produce character input, such as letters, numbers, punctuation, and space. It does not fire for modifier keys or control-key chords.
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | KeyboardEventHandler | Handler to run with keyboard event data when a printable character is typed. |
Returns
void