src/hotkeys.js
function Hotkey (combo, description, callback, action, allowIn, persistent) {
        // TODO: Check that the values are sane because we could
        // be trying to instantiate a new Hotkey with outside dev's
        // supplied values

        this.combo = combo instanceof Array ? combo : [combo];
        this.description = description;
        this.callback = callback;
        this.action = action;
        this.allowIn = allowIn;
        this.persistent = persistent;
        this._formated = null;
      }
function Hotkey (combo, description, callback, action, allowIn, persistent) {
        // TODO: Check that the values are sane because we could
        // be trying to instantiate a new Hotkey with outside dev's
        // supplied values

        this.combo = combo instanceof Array ? combo : [combo];
        this.description = description;
        this.callback = callback;
        this.action = action;
        this.allowIn = allowIn;
        this.persistent = persistent;
        this._formated = null;
      }
function Hotkey ( combo , description , callback , action , allowIn , persistent ) { // TODO: Check that the values are sane because we could // be trying to instantiate a new Hotkey with outside dev's // supplied values this . combo = combo instanceof Array ? combo : [ combo ] ; this . description = description ; this . callback = callback ; this . action = action ; this . allowIn = allowIn ; this . persistent = persistent ; this . _formated = null ; }
Hotkey object used internally for consistency

@param {array}    combo       The keycombo. it's an array to support multiple combos
@param {String}   description Description for the keycombo
@param {Function} callback    function to execute when keycombo pressed
@param {string}   action      the type of event to listen for (for mousetrap)
@param {array}    allowIn     an array of tag names to allow this combo in ('INPUT', 'SELECT', and/or 'TEXTAREA')
@param {Boolean}  persistent  Whether the hotkey persists navigation events
Hotkey object used internally for consistency