mar10/fancytree

View on GitHub
3rd-party/extensions/hotkeys/js/jquery.hotkeys.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function keyHandler has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function keyHandler(handleObj) {
    if (typeof handleObj.data === "string") {
      handleObj.data = {
        keys: handleObj.data
      };
Severity: Minor
Found in 3rd-party/extensions/hotkeys/js/jquery.hotkeys.js - About 1 hr to fix

    Function handler has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    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))) {
    Severity: Minor
    Found in 3rd-party/extensions/hotkeys/js/jquery.hotkeys.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status