INPUT /  OUTPUT /  LANGUAGE





onKeyPress field

Code field

Code carried out when a key press types a character.

Applies to...

Sample usage

Behaviour

A code field: holds code to be carried out each time the event happens. Add code after the tag is created with .push.

While the code runs, key holds the key code followed by the character typed.

Notes

In ioL version 1.05, onKeyPress is only carried out for some keys. Use onKeyDown to respond to keys, and onInput to respond to typing.

See also