function normalizeModifiers(modifiers) {
  var result = [];
  if (contains(modifiers, 'L_SHIFT') || contains(modifiers, 'R_SHIFT')) {
    result.push('SHIFT');
  }
  if (contains(modifiers, 'L_CTRL') || contains(modifiers, 'R_CTRL')) {
    result.push('CTRL');
  }
  if (contains(modifiers, 'L_ALT') || contains(modifiers, 'R_ALT')) {
    result.push('ALT');
  }
  if (contains(modifiers, 'SEARCH')) {
    result.push('SEARCH');
  }
  return result.sort();
}
/**
 * Returns a list of modifiers normalized to ignore the distinction between
 * right or left keys.
 * @param {Array} modifiers List of modifiers with distinction between right
 *        and left keys.
 * @return {Array} List of normalized modifiers ignoring the difference between
 *         right or left keys.
 */
Returns a list of modifiers normalized to ignore the distinction between
right or left keys.
@param {Array} modifiers List of modifiers with distinction between right
and left keys.
@return {Array} List of normalized modifiers ignoring the difference between
right or left keys.
Returns a list of modifiers normalized to ignore the distinction between right or left keys . @param { Array } modifiers List of modifiers with distinction between right and left keys . @return { Array } List of normalized modifiers ignoring the difference between right or left keys .
function normalizeModifiers(modifiers) {
  var result = [];
  if (contains(modifiers, 'L_SHIFT') || contains(modifiers, 'R_SHIFT')) {
    result.push('SHIFT');
  }
  if (contains(modifiers, 'L_CTRL') || contains(modifiers, 'R_CTRL')) {
    result.push('CTRL');
  }
  if (contains(modifiers, 'L_ALT') || contains(modifiers, 'R_ALT')) {
    result.push('ALT');
  }
  if (contains(modifiers, 'SEARCH')) {
    result.push('SEARCH');
  }
  return result.sort();
}
function normalizeModifiers ( modifiers ) { var result = [ ] ; if ( contains ( modifiers , 'L_SHIFT' ) || contains ( modifiers , 'R_SHIFT' ) ) { result . push ( 'SHIFT' ) ; } if ( contains ( modifiers , 'L_CTRL' ) || contains ( modifiers , 'R_CTRL' ) ) { result . push ( 'CTRL' ) ; } if ( contains ( modifiers , 'L_ALT' ) || contains ( modifiers , 'R_ALT' ) ) { result . push ( 'ALT' ) ; } if ( contains ( modifiers , 'SEARCH' ) ) { result . push ( 'SEARCH' ) ; } return result . sort ( ) ; }
Returns a list of modifiers normalized to ignore the distinction between
 right or left keys.
Returns a list of modifiers normalized to ignore the distinction between right or left keys .