function initIdentifierMap(remap) {
  for (var key in remap) {
    var val = remap[key];
    if ((key in LABEL_TO_IDENTIFIER) && (val in LABEL_TO_IDENTIFIER)) {
      identifierMap[LABEL_TO_IDENTIFIER[key]] = LABEL_TO_IDENTIFIER[val];
    } else {
      console.error('Invalid label map element: ' + key + ', ' + val);
    }
  }
  chrome.send('getInputMethodId');
}
/**
 * Initializes the global map for remapping identifiers of modifier keys based
 * on the preference.
 * Called after sending the 'getLabelMap' message.
 * @param {Object} remap Identifier map.
 */
Initializes the global map for remapping identifiers of modifier keys based
on the preference.
Called after sending the 'getLabelMap' message.
@param {Object} remap Identifier map.
Initializes the global map for remapping identifiers of modifier keys based on the preference . Called after sending the ' getLabelMap ' message . @param { Object } remap Identifier map .
function initIdentifierMap(remap) {
  for (var key in remap) {
    var val = remap[key];
    if ((key in LABEL_TO_IDENTIFIER) && (val in LABEL_TO_IDENTIFIER)) {
      identifierMap[LABEL_TO_IDENTIFIER[key]] = LABEL_TO_IDENTIFIER[val];
    } else {
      console.error('Invalid label map element: ' + key + ', ' + val);
    }
  }
  chrome.send('getInputMethodId');
}
function initIdentifierMap ( remap ) { for ( var key in remap ) { var val = remap [ key ] ; if ( ( key in LABEL_TO_IDENTIFIER ) && ( val in LABEL_TO_IDENTIFIER ) ) { identifierMap [ LABEL_TO_IDENTIFIER [ key ] ] = LABEL_TO_IDENTIFIER [ val ] ; } else { console . error ( 'Invalid label map element: ' + key + ', ' + val ) ; } } chrome . send ( 'getInputMethodId' ) ; }
Initializes the global map for remapping identifiers of modifier keys based
 on the preference.
Initializes the global map for remapping identifiers of modifier keys based on the preference .