KeyboardEventModifier.js 804 B

12345678910111213141516171819202122232425262728293031323334
  1. import freezeObject from './freezeObject.js';
  2. /**
  3. * This enumerated type is for representing keyboard modifiers. These are keys
  4. * that are held down in addition to other event types.
  5. *
  6. * @exports KeyboardEventModifier
  7. */
  8. var KeyboardEventModifier = {
  9. /**
  10. * Represents the shift key being held down.
  11. *
  12. * @type {Number}
  13. * @constant
  14. */
  15. SHIFT : 0,
  16. /**
  17. * Represents the control key being held down.
  18. *
  19. * @type {Number}
  20. * @constant
  21. */
  22. CTRL : 1,
  23. /**
  24. * Represents the alt key being held down.
  25. *
  26. * @type {Number}
  27. * @constant
  28. */
  29. ALT : 2
  30. };
  31. export default freezeObject(KeyboardEventModifier);