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

Unified Diff: Source/testing/runner/EventSender.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, 4 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: Source/testing/runner/EventSender.cpp
diff --git a/Source/testing/runner/EventSender.cpp b/Source/testing/runner/EventSender.cpp
index 2b1754b1f8a8faf77ba49c24fc2a1a96303c46fc..c460c769e713639d259c2b2760a2c34fbd2cb84e 100644
--- a/Source/testing/runner/EventSender.cpp
+++ b/Source/testing/runner/EventSender.cpp
@@ -602,6 +602,8 @@ void EventSender::keyDown(const CppArgumentList& arguments, CppVariant* result)
code = VKEY_LMENU;
else if ("rightAlt" == codeStr)
code = VKEY_RMENU;
+ else if ("numLock" == codeStr)
+ code = VKEY_NUMLOCK;
else {
// Compare the input string with the function-key names defined by the
// DOM spec (i.e. "F1",...,"F24"). If the input string is a function-key
« no previous file with comments | « LayoutTests/fast/events/keydown-numlock-standard-location-expected.txt ('k') | Source/testing/runner/KeyCodeMapping.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698