onKeyType()
Register a function to call when a key is typed (pressed and released).
Parameters
Once an object item has been created, you can use the following function:
item.onKeyType(action)
| Parameter | Type | Default | Description |
|---|---|---|---|
action |
function |
required | The function to call; it receives one parameter, the key typed as a string, for example "a", "A", "1", or "/". Upper and lower case are distinguished. |