Chromium Code Reviews| Index: chrome/browser/resources/chromeos/keyboard_overlay.js |
| diff --git a/chrome/browser/resources/chromeos/keyboard_overlay.js b/chrome/browser/resources/chromeos/keyboard_overlay.js |
| index fca7f74ce737a2bd089cbb8e905ba5b5c478f46e..c7f767cafca8a67d306e383595b2b0fd684c95fd 100644 |
| --- a/chrome/browser/resources/chromeos/keyboard_overlay.js |
| +++ b/chrome/browser/resources/chromeos/keyboard_overlay.js |
| @@ -555,6 +555,15 @@ function update(modifiers, normModifiers) { |
| classes.push('keyboard-overlay-key-background'); |
| + if ((shortcutId == 'keyboardOverlayGoBack' || |
| + shortcutId == 'keyboardOverlayGoForward') && |
| + !loadTimeData.getBoolean('backspaceGoesBackFeatureEnabled')) { |
|
Lei Zhang
2016/08/04 16:55:04
This is indented 1 space too far. If the first eva
afakhry
2016/08/04 18:04:29
Done.
|
| + // If the "backspace key goes back" experiment is not enabled, then we |
| + // clear the shortcuts for Backspace and Shift+Backspace to go back or |
| + // forward respectively. |
| + shortcutId = null; |
| + } |
| + |
| if (shortcutId) { |
| classes.push('is-shortcut'); |
| classes.push('keyboard-overlay-shortcut-key-background'); |