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

Side by Side Diff: Source/testing/runner/KeyCodeMapping.cpp

Issue 22831043: KeyboardEvent.location should be DOM_KEY_LOCATION_STANDARD for Num Lock key (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove mention of DRT Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/testing/runner/KeyCodeMapping.h ('k') | Source/web/win/WebInputEventFactory.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 case VKEY_RSHIFT: 227 case VKEY_RSHIFT:
228 return 62; 228 return 62;
229 case VKEY_LCONTROL: 229 case VKEY_LCONTROL:
230 return 37; 230 return 37;
231 case VKEY_RCONTROL: 231 case VKEY_RCONTROL:
232 return 105; 232 return 105;
233 case VKEY_LMENU: 233 case VKEY_LMENU:
234 return 64; 234 return 64;
235 case VKEY_RMENU: 235 case VKEY_RMENU:
236 return 108; 236 return 108;
237 case VKEY_NUMLOCK:
238 return 77;
237 239
238 default: 240 default:
239 return 0; 241 return 0;
240 } 242 }
241 #else 243 #else
242 return keysym - keysym; 244 return keysym - keysym;
243 #endif 245 #endif
244 } 246 }
245 247
246 } 248 }
OLDNEW
« no previous file with comments | « Source/testing/runner/KeyCodeMapping.h ('k') | Source/web/win/WebInputEventFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698