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

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

Issue 2814003002: Add test to check all current accelerators having keyboard overlay. (Closed)
Patch Set: 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
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..46433bcfb8335686456758f05896566193f82cf5 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'
};
+// This mapping is maintained for Keyboard_overlay_ui_browsertest.
xiyuan 2017/04/12 16:15:46 nit: either use lower case file name or use camel
wutao 2017/04/12 18:06:08 Changed to lowercase keyboard_overlay_ui_browserte
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',
};
/**

Powered by Google App Engine
This is Rietveld 408576698