Class: KeyHandler

KeyHandler()

new KeyHandler()

The constructor.
Parameters:
Name Type Description
options.element (optional) The HTML element to listen on; if null then 'window' will be used.
options.trackAll (optional) Set to true if you want to keep track of _all_ keys (keyStatus).
Source: