src/command/KeyBindingManager.js
function getKeyBindings(command) {
        var bindings    = [],
            commandID   = "";

        if (!command) {
            console.error("getKeyBindings(): missing required parameter: command");
            return [];
        }

        if (typeof (command) === "string") {
            commandID = command;
        } else {
            commandID = command.getID();
        }

        bindings = _commandMap[commandID];
        return bindings || [];
    }
function getKeyBindings(command) {
        var bindings    = [],
            commandID   = "";

        if (!command) {
            console.error("getKeyBindings(): missing required parameter: command");
            return [];
        }

        if (typeof (command) === "string") {
            commandID = command;
        } else {
            commandID = command.getID();
        }

        bindings = _commandMap[commandID];
        return bindings || [];
    }
function getKeyBindings ( command ) { var bindings = [ ] , commandID = "" ; if ( ! command ) { console . error ( "getKeyBindings(): missing required parameter: command" ) ; return [ ] ; } if ( typeof ( command ) === "string" ) { commandID = command ; } else { commandID = command . getID ( ) ; } bindings = _commandMap [ commandID ] ; return bindings || [ ] ; }
Retrieve key bindings currently associated with a command

@param {!string | Command} command - A command ID or command object
@return {!Array.<{{key: string, displayKey: string}}>} An array of associated key bindings.
Retrieve key bindings currently associated with a command