Changeset 615

Show
Ignore:
Timestamp:
08/22/08 17:23:54 (19 months ago)
Author:
scott.gonzalez
Message:

Core: Fixed #3233: Added constants for key codes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.core.js

    r563 r615  
    1212/** jQuery core modifications and additions **/ 
    1313 
    14 // This adds a selector to check if data exists. 
    15 jQuery.expr[':'].data = "jQuery.data(a, m[3])"; 
    16  
    1714var _remove = $.fn.remove; 
    1815$.fn.remove = function() { 
    1916        $("*", this).add(this).triggerHandler("remove"); 
    2017        return _remove.apply(this, arguments ); 
     18}; 
     19 
     20// This adds a selector to check if data exists. 
     21jQuery.expr[':'].data = "jQuery.data(a, m[3])"; 
     22 
     23$.keyCode = { 
     24        BACKSPACE: 8, 
     25        CAPS_LOCK: 20, 
     26        COMMA: 188, 
     27        CONTROL: 17, 
     28        DELETE: 46, 
     29        DOWN: 40, 
     30        END: 35, 
     31        ENTER: 13, 
     32        ESCAPE: 27, 
     33        HOME: 36, 
     34        INSERT: 45, 
     35        LEFT: 37, 
     36        NUMPAD_ADD: 107, 
     37        NUMPAD_DECIMAL: 110, 
     38        NUMPAD_DIVIDE: 111, 
     39        NUMPAD_ENTER: 108, 
     40        NUMPAD_MULTIPLY: 106, 
     41        NUMPAD_SUBTRACT: 109, 
     42        PAGE_DOWN: 34, 
     43        PAGE_UP: 33, 
     44        PERIOD: 190, 
     45        RIGHT: 39, 
     46        SHIFT: 16, 
     47        SPACE: 32, 
     48        TAB: 9, 
     49        UP: 38 
    2150}; 
    2251