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..0f08c98388071ba61c2365a9beb24370ade08ef2 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 && (shortcutId == 'keyboardOverlayGoBack' || |
|
Lei Zhang
2016/08/03 23:03:43
I'm not JS expert, so take this with a grain of sa
afakhry
2016/08/04 16:44:59
I'm not a JS person either, but you were right, no
|
| + shortcutId == 'keyboardOverlayGoForward')) { |
| + // 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. |
| + if (!loadTimeData.getBoolean('backspaceGoesBackFeatureEnabled')) |
|
Lei Zhang
2016/08/03 23:03:43
Tack this on to the if statement above?
afakhry
2016/08/04 16:44:59
Done.
|
| + shortcutId = null; |
| + } |
| + |
| if (shortcutId) { |
| classes.push('is-shortcut'); |
| classes.push('keyboard-overlay-shortcut-key-background'); |