Source: Core/KeyboardEventModifier.js

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