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]}, |