Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2486)

Unified Diff: chrome/browser/resources/chromeos/keyboard_overlay.js

Issue 2814003002: Add test to check all current accelerators having keyboard overlay. (Closed)
Patch Set: Forget to save a change. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/resources/chromeos/keyboard_overlay_data.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5758dc73033b8fb227fa622b45e003ab92b7756a..86a3ab02549f204147a3c19a8ae80845840565e8 100644
--- a/chrome/browser/resources/chromeos/keyboard_overlay.js
+++ b/chrome/browser/resources/chromeos/keyboard_overlay.js
@@ -45,9 +45,11 @@ var LABEL_TO_IDENTIFIER = {
'disabled': 'DISABLED'
};
+// For KeyboardOverlayUIBrowserTest.
var KEYCODE_TO_LABEL = {
8: 'backspace',
9: 'tab',
+ 10: 'shift',
13: 'enter',
27: 'esc',
32: 'space',
@@ -87,6 +89,15 @@ var KEYCODE_TO_LABEL = {
119: 'mute',
120: 'vol. down',
121: 'vol. up',
+ 152: 'power',
+ 166: 'back',
+ 167: 'forward',
+ 168: 'reload',
+ 173: 'mute',
+ 174: 'vol. down',
+ 175: 'vol. up',
+ 183: 'full screen',
+ 182: 'switch window',
186: ';',
187: '+',
188: ',',
@@ -94,10 +105,14 @@ var KEYCODE_TO_LABEL = {
190: '.',
191: '/',
192: '`',
+ 216: 'bright down',
+ 217: 'bright up',
+ 218: 'bright down',
219: '[',
220: '\\',
221: ']',
222: '\'',
+ 232: 'bright up',
};
/**
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/resources/chromeos/keyboard_overlay_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698