Class: Key

Key

An abstraction around a KeyEvent that key listeners in the editor can use to determine what sort of key was pressed

Constructor

new Key()

Source:

Methods

isPrintable()

See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode#Printable_keys_in_standard_position and http://stackoverflow.com/a/12467610/137784

Source:

isShift() → {bool}

If the shift key is depressed. For example, while holding down meta+shift, pressing the "v" key would result in an event whose Key had isShift() with a truthy value, because the shift key is down when pressing the "v".

Source:
See:
  • {isShiftKey} which checks if the key is actually the shift key itself.
Returns:
Type
bool