function initKeyboardLayout2() {
  var newLayoutData = {
    '1D': [5.0, 287.0, 80.0, 60.0],    // left Ctrl
    'D8': [85.0, 287.0, 80.0, 60.0],   // Assistant key
    '38': [165.0, 287.0, 80.0, 60.0],  // left Alt
    '5D': [803.0, 6.0, 72.0, 35.0],    // System menu
  };
  var newKeyData = {
    'D8': {'label': 'assistant', 'format': 'left'},
    '5D': {'label': 'system menu'},
    'E0 5B': {'label': 'launcher', 'format': 'left'},
    '3B': {'label': 'back'},
    '3C': {'label': 'reload'},
    '3D': {'label': 'full screen'},
    '3E': {'label': 'switch window'},
    '3F': {'label': 'bright down'},
    '40': {'label': 'bright up'},
    '41': {'label': 'play / pause'},
    '42': {'label': 'mute'},
    '43': {'label': 'vol. down'},
    '44': {'label': 'vol. up'},
  };
  var keysToRemove = [
    '00',  // The power key.
  ];
  modifyLayoutAndKeyData(newLayoutData, newKeyData, keysToRemove);

  // Modify the Search + top row keys shortcuts:
  var newShortcuts = {
    'bright down<>SEARCH': 'keyboardOverlayF5',
    'bright up<>SEARCH': 'keyboardOverlayF6',
    'f2<>SEARCH': 'keyboardOverlayReloadKeyLabel',
    'f3<>SEARCH': 'keyboardOverlayFullScreenKeyLabel',
    'f4<>SEARCH': 'keyboardOverlaySwitchWinKeyLabel',
    'f5<>SEARCH': 'keyboardOverlayBrightDownKeyLabel',
    'f6<>SEARCH': 'keyboardOverlayBrightUpKeyLabel',
    'f7<>SEARCH': 'keyboardOverlayPlayPauseKeyLabel',
    'full screen<>SEARCH': 'keyboardOverlayF3',
    'play / pause<>SEARCH': 'keyboardOverlayF7',
    'reload<>SEARCH': 'keyboardOverlayF2',
    'switch window<>SEARCH': 'keyboardOverlayF4',
  };
  var shortcutDataCache = keyboardOverlayData['shortcut'];
  for (var shortcutId in newShortcuts) {
    shortcutDataCache[shortcutId] = newShortcuts[shortcutId];
    delete newShortcuts[shortcutId];
  }
  for (var remainingId in newShortcuts)
    shortcutDataCache[remainingId] = newShortcuts[remainingId];
}
/**
 * Initializes the layout for devices which have the new keyboard layout.
 */
Initializes the layout for devices which have the new keyboard layout.
Initializes the layout for devices which have the new keyboard layout .
function initKeyboardLayout2() {
  var newLayoutData = {
    '1D': [5.0, 287.0, 80.0, 60.0],    
    'D8': [85.0, 287.0, 80.0, 60.0],   
    '38': [165.0, 287.0, 80.0, 60.0],  
    '5D': [803.0, 6.0, 72.0, 35.0],    
  };
  var newKeyData = {
    'D8': {'label': 'assistant', 'format': 'left'},
    '5D': {'label': 'system menu'},
    'E0 5B': {'label': 'launcher', 'format': 'left'},
    '3B': {'label': 'back'},
    '3C': {'label': 'reload'},
    '3D': {'label': 'full screen'},
    '3E': {'label': 'switch window'},
    '3F': {'label': 'bright down'},
    '40': {'label': 'bright up'},
    '41': {'label': 'play / pause'},
    '42': {'label': 'mute'},
    '43': {'label': 'vol. down'},
    '44': {'label': 'vol. up'},
  };
  var keysToRemove = [
    '00',  
  ];
  modifyLayoutAndKeyData(newLayoutData, newKeyData, keysToRemove);
  var newShortcuts = {
    'bright down<>SEARCH': 'keyboardOverlayF5',
    'bright up<>SEARCH': 'keyboardOverlayF6',
    'f2<>SEARCH': 'keyboardOverlayReloadKeyLabel',
    'f3<>SEARCH': 'keyboardOverlayFullScreenKeyLabel',
    'f4<>SEARCH': 'keyboardOverlaySwitchWinKeyLabel',
    'f5<>SEARCH': 'keyboardOverlayBrightDownKeyLabel',
    'f6<>SEARCH': 'keyboardOverlayBrightUpKeyLabel',
    'f7<>SEARCH': 'keyboardOverlayPlayPauseKeyLabel',
    'full screen<>SEARCH': 'keyboardOverlayF3',
    'play / pause<>SEARCH': 'keyboardOverlayF7',
    'reload<>SEARCH': 'keyboardOverlayF2',
    'switch window<>SEARCH': 'keyboardOverlayF4',
  };
  var shortcutDataCache = keyboardOverlayData['shortcut'];
  for (var shortcutId in newShortcuts) {
    shortcutDataCache[shortcutId] = newShortcuts[shortcutId];
    delete newShortcuts[shortcutId];
  }
  for (var remainingId in newShortcuts)
    shortcutDataCache[remainingId] = newShortcuts[remainingId];
}
function initKeyboardLayout2 ( ) { var newLayoutData = { '1D' : [ 5.0 , 287.0 , 80.0 , 60.0 ] , 'D8' : [ 85.0 , 287.0 , 80.0 , 60.0 ] , '38' : [ 165.0 , 287.0 , 80.0 , 60.0 ] , '5D' : [ 803.0 , 6.0 , 72.0 , 35.0 ] , } ; var newKeyData = { 'D8' : { 'label' : 'assistant' , 'format' : 'left' } , '5D' : { 'label' : 'system menu' } , 'E0 5B' : { 'label' : 'launcher' , 'format' : 'left' } , '3B' : { 'label' : 'back' } , '3C' : { 'label' : 'reload' } , '3D' : { 'label' : 'full screen' } , '3E' : { 'label' : 'switch window' } , '3F' : { 'label' : 'bright down' } , '40' : { 'label' : 'bright up' } , '41' : { 'label' : 'play / pause' } , '42' : { 'label' : 'mute' } , '43' : { 'label' : 'vol. down' } , '44' : { 'label' : 'vol. up' } , } ; var keysToRemove = [ '00' , ] ; modifyLayoutAndKeyData ( newLayoutData , newKeyData , keysToRemove ) ; var newShortcuts = { 'bright down<>SEARCH' : 'keyboardOverlayF5' , 'bright up<>SEARCH' : 'keyboardOverlayF6' , 'f2<>SEARCH' : 'keyboardOverlayReloadKeyLabel' , 'f3<>SEARCH' : 'keyboardOverlayFullScreenKeyLabel' , 'f4<>SEARCH' : 'keyboardOverlaySwitchWinKeyLabel' , 'f5<>SEARCH' : 'keyboardOverlayBrightDownKeyLabel' , 'f6<>SEARCH' : 'keyboardOverlayBrightUpKeyLabel' , 'f7<>SEARCH' : 'keyboardOverlayPlayPauseKeyLabel' , 'full screen<>SEARCH' : 'keyboardOverlayF3' , 'play / pause<>SEARCH' : 'keyboardOverlayF7' , 'reload<>SEARCH' : 'keyboardOverlayF2' , 'switch window<>SEARCH' : 'keyboardOverlayF4' , } ; var shortcutDataCache = keyboardOverlayData [ 'shortcut' ] ; for ( var shortcutId in newShortcuts ) { shortcutDataCache [ shortcutId ] = newShortcuts [ shortcutId ] ; delete newShortcuts [ shortcutId ] ; } for ( var remainingId in newShortcuts ) shortcutDataCache [ remainingId ] = newShortcuts [ remainingId ] ; }
Initializes the layout for devices which have the new keyboard layout.
Initializes the layout for devices which have the new keyboard layout .
// left Ctrl // Assistant key // left Alt // System menu // The power key. // Modify the Search + top row keys shortcuts: