3rd-party/extensions/hotkeys/js/jquery.hotkeys.js
Function keyHandler
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function keyHandler(handleObj) {
if (typeof handleObj.data === "string") {
handleObj.data = {
keys: handleObj.data
};
Function handler
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleObj.handler = function(event) {
// Don't fire in text-accepting inputs that we didn't directly bind to
if (this !== event.target && (/textarea|select/i.test(event.target.nodeName) ||
(jQuery.hotkeys.options.filterTextInputs &&
jQuery.inArray(event.target.type, jQuery.hotkeys.textAcceptingInputTypes) > -1))) {