Class: KeyHandler

KeyHandler()

new KeyHandler()

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