summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
authorhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 09:54:55 +0000
committerhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-26 09:54:55 +0000
commitad64bf24b0904080c2df1b4c35ecaadb4aece6c7 (patch)
tree69ce22f92c34a9e414cb71a6f9f0b4b0b48003ef /webkit/tools
parent50114e88843a1d3e0b18e7c50943d170005ab4e4 (diff)
downloadchromium_src-ad64bf24b0904080c2df1b4c35ecaadb4aece6c7.zip
chromium_src-ad64bf24b0904080c2df1b4c35ecaadb4aece6c7.tar.gz
chromium_src-ad64bf24b0904080c2df1b4c35ecaadb4aece6c7.tar.bz2
A quick fix for Bug 51036
This change just back-ports the WebKit change 64470 <http://trac.webkit.org/changeset/64470>, which integrates support for a printscreen key and an insert key into DumpRenderTree, to our test_shell. BUG=51036 TEST=fast/events/special-key-events-in-input-text.html Review URL: http://codereview.chromium.org/3037053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57503 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r--webkit/tools/test_shell/event_sending_controller.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/event_sending_controller.cc b/webkit/tools/test_shell/event_sending_controller.cc
index 6104c72..4b3c028 100644
--- a/webkit/tools/test_shell/event_sending_controller.cc
+++ b/webkit/tools/test_shell/event_sending_controller.cc
@@ -564,6 +564,8 @@ void EventSendingController::keyDown(
code = base::VKEY_LEFT;
} else if (L"upArrow" == code_str) {
code = base::VKEY_UP;
+ } else if (L"insert" == code_str) {
+ code = base::VKEY_INSERT;
} else if (L"delete" == code_str) {
code = base::VKEY_BACK;
} else if (L"pageUp" == code_str) {
@@ -574,6 +576,8 @@ void EventSendingController::keyDown(
code = base::VKEY_HOME;
} else if (L"end" == code_str) {
code = base::VKEY_END;
+ } else if (L"printScreen" == code_str) {
+ code = base::VKEY_SNAPSHOT;
} 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