function Keyboard() {
    // for now, base the keyboard code set off of jQueryUI, if it is present
    var keycodes = $.extend({},  $.ui && $.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,

      SHIFT: 16,
      ALT: 18,    // Windows/Unix
      OPTION: 18, // OSX
      CONTROL: 17,
      COMMAND: 91,

      F2: 113,
    });

    return keycodes;
  }
/***
   * Define a keyboard as a set of names for keypress codes, etc. for better code readability.
   */
Define a keyboard as a set of names for keypress codes, etc. for better code readability.
Define a keyboard as a set of names for keypress codes etc . for better code readability .
function Keyboard() {
    var keycodes = $.extend({},  $.ui && $.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,
      SHIFT: 16,
      ALT: 18,    
      OPTION: 18, 
      CONTROL: 17,
      COMMAND: 91,
      F2: 113,
    });
    return keycodes;
  }
function Keyboard ( ) { var keycodes = $ . extend ( { } , $ . ui && $ . 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 , SHIFT : 16 , ALT : 18 , OPTION : 18 , CONTROL : 17 , COMMAND : 91 , F2 : 113 , } ) ; return keycodes ; }
Define a keyboard as a set of names for keypress codes, etc.
Define a keyboard as a set of names for keypress codes etc .
// for now, base the keyboard code set off of jQueryUI, if it is present // Windows/Unix // OSX