function CommandManager(doc) {
    doc.addEventListener('focus', this.handleFocus_.bind(this), true);
    // Make sure we add the listener to the bubbling phase so that elements can
    // prevent the command.
    doc.addEventListener('keydown', this.handleKeyDown_.bind(this), false);
  }
/**
   * Keeps track of the focused element and updates the commands when the focus
   * changes.
   * @param {!Document} doc The document that we are managing the commands for.
   * @constructor
   */
Keeps track of the focused element and updates the commands when the focus
changes.
@param {!Document} doc The document that we are managing the commands for.
@constructor
Keeps track of the focused element and updates the commands when the focus changes . @param { !Document } doc The document that we are managing the commands for . @constructor
function CommandManager(doc) {
    doc.addEventListener('focus', this.handleFocus_.bind(this), true);
    doc.addEventListener('keydown', this.handleKeyDown_.bind(this), false);
  }
function CommandManager ( doc ) { doc . addEventListener ( 'focus' , this . handleFocus_ . bind ( this ) , true ) ; doc . addEventListener ( 'keydown' , this . handleKeyDown_ . bind ( this ) , false ) ; }
Keeps track of the focused element and updates the commands when the focus
 changes.
Keeps track of the focused element and updates the commands when the focus changes .
// Make sure we add the listener to the bubbling phase so that elements can // prevent the command.