wp/wp-includes/js/jquery/jquery.hotkeys.js
changeset 18 be944660c56a
parent 5 5e2f62d02dcd
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
    37     this.shift_nums = { "`":"~", "1":"!", "2":"@", "3":"#", "4":"$", "5":"%", "6":"^", "7":"&",
    37     this.shift_nums = { "`":"~", "1":"!", "2":"@", "3":"#", "4":"$", "5":"%", "6":"^", "7":"&",
    38         "8":"*", "9":"(", "0":")", "-":"_", "=":"+", ";":":", "'":"\"", ",":"<",
    38         "8":"*", "9":"(", "0":")", "-":"_", "=":"+", ";":":", "'":"\"", ",":"<",
    39         ".":">",  "/":"?",  "\\":"|" };
    39         ".":">",  "/":"?",  "\\":"|" };
    40 
    40 
    41     this.add = function(combi, options, callback) {
    41     this.add = function(combi, options, callback) {
    42         if (jQuery.isFunction(options)){
    42         if ( typeof options === 'function' ){
    43             callback = options;
    43             callback = options;
    44             options = {};
    44             options = {};
    45         }
    45         }
    46         var opt = {},
    46         var opt = {},
    47             defaults = {type: 'keydown', propagate: false, disableInInput: false, target: jQuery('html')[0]},
    47             defaults = {type: 'keydown', propagate: false, disableInInput: false, target: jQuery('html')[0]},