Skip to the main content


Global


Class: constants

Reusable constants.

keys - A mapping of key names to their corresponding identifiers.

### keyCodes - A mapping of key names to their corresponding keyCodes (DEPRECATED).

  • constants.keys.tab - the tab key
  • constants.keys.enter - the enter key
  • constants.keys.esc - the escape key
  • constants.keys.space - the space key
  • constants.keys.left - the left arrow key
  • constants.keys.up - the up arrow key
  • constants.keys.right - the right arrow key
  • constants.keys.down - the down arrow key