2015-07-15 22:03:01 +00:00
|
|
|
/*!
|
|
|
|
* jQuery UI Keycode @VERSION
|
|
|
|
* http://jqueryui.com
|
|
|
|
*
|
2022-07-19 07:36:55 +00:00
|
|
|
* Copyright OpenJS Foundation and other contributors
|
2015-07-15 22:03:01 +00:00
|
|
|
* Released under the MIT license.
|
|
|
|
* http://jquery.org/license
|
|
|
|
*/
|
|
|
|
|
|
|
|
//>>label: Keycode
|
|
|
|
//>>group: Core
|
|
|
|
//>>description: Provide keycodes as keynames
|
|
|
|
//>>docs: http://api.jqueryui.com/jQuery.ui.keyCode/
|
|
|
|
|
|
|
|
( function( factory ) {
|
2021-06-06 22:58:12 +00:00
|
|
|
"use strict";
|
|
|
|
|
2015-07-15 22:03:01 +00:00
|
|
|
if ( typeof define === "function" && define.amd ) {
|
|
|
|
|
|
|
|
// AMD. Register as an anonymous module.
|
|
|
|
define( [ "jquery", "./version" ], factory );
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// Browser globals
|
|
|
|
factory( jQuery );
|
|
|
|
}
|
2021-06-06 22:58:12 +00:00
|
|
|
} )( function( $ ) {
|
|
|
|
"use strict";
|
|
|
|
|
2015-07-15 22:03:01 +00:00
|
|
|
return $.ui.keyCode = {
|
|
|
|
BACKSPACE: 8,
|
|
|
|
COMMA: 188,
|
|
|
|
DELETE: 46,
|
|
|
|
DOWN: 40,
|
|
|
|
END: 35,
|
|
|
|
ENTER: 13,
|
|
|
|
ESCAPE: 27,
|
|
|
|
HOME: 36,
|
|
|
|
LEFT: 37,
|
|
|
|
PAGE_DOWN: 34,
|
|
|
|
PAGE_UP: 33,
|
|
|
|
PERIOD: 190,
|
|
|
|
RIGHT: 39,
|
|
|
|
SPACE: 32,
|
|
|
|
TAB: 9,
|
|
|
|
UP: 38
|
|
|
|
};
|
|
|
|
|
2021-06-06 22:58:12 +00:00
|
|
|
} );
|