keycode.js 823 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*!
  2. * jQuery UI Keycode 1.14.1
  3. * https://jqueryui.com
  4. *
  5. * Copyright OpenJS Foundation and other contributors
  6. * Released under the MIT license.
  7. * https://jquery.org/license
  8. */
  9. //>>label: Keycode
  10. //>>group: Core
  11. //>>description: Provide keycodes as keynames
  12. //>>docs: https://api.jqueryui.com/jQuery.ui.keyCode/
  13. ( function( factory ) {
  14. "use strict";
  15. if ( typeof define === "function" && define.amd ) {
  16. // AMD. Register as an anonymous module.
  17. define( [ "jquery", "./version" ], factory );
  18. } else {
  19. // Browser globals
  20. factory( jQuery );
  21. }
  22. } )( function( $ ) {
  23. "use strict";
  24. return $.ui.keyCode = {
  25. BACKSPACE: 8,
  26. COMMA: 188,
  27. DELETE: 46,
  28. DOWN: 40,
  29. END: 35,
  30. ENTER: 13,
  31. ESCAPE: 27,
  32. HOME: 36,
  33. LEFT: 37,
  34. PAGE_DOWN: 34,
  35. PAGE_UP: 33,
  36. PERIOD: 190,
  37. RIGHT: 39,
  38. SPACE: 32,
  39. TAB: 9,
  40. UP: 38
  41. };
  42. } );