function hasValidModifiers(e) {
    switch (getModifierPolicy(e.keyCode)) {
      case ModifierPolicy.REQUIRED:
        return hasModifier(e, false);
      case ModifierPolicy.NOT_ALLOWED:
        return !hasModifier(e, true);
    }
    assertNotReached();
  }
/**
   * Returns true if the event has valid modifiers.
   * @param {!KeyboardEvent} e The keyboard event to consider.
   * @return {boolean} True if the event is valid.
   */
Returns true if the event has valid modifiers.
@param {!KeyboardEvent} e The keyboard event to consider.
@return {boolean} True if the event is valid.
Returns true if the event has valid modifiers . @param { !KeyboardEvent } e The keyboard event to consider . @return { boolean } True if the event is valid .
function hasValidModifiers(e) {
    switch (getModifierPolicy(e.keyCode)) {
      case ModifierPolicy.REQUIRED:
        return hasModifier(e, false);
      case ModifierPolicy.NOT_ALLOWED:
        return !hasModifier(e, true);
    }
    assertNotReached();
  }
function hasValidModifiers ( e ) { switch ( getModifierPolicy ( e . keyCode ) ) { case ModifierPolicy . REQUIRED : return hasModifier ( e , false ) ; case ModifierPolicy . NOT_ALLOWED : return ! hasModifier ( e , true ) ; } assertNotReached ( ) ; }
Returns true if the event has valid modifiers.
Returns true if the event has valid modifiers .