summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnej@chromium.org <snej@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-23 22:21:52 +0000
committersnej@chromium.org <snej@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-23 22:21:52 +0000
commita006e1878613f46b7b0a8ca80ce5017a28e8cf4f (patch)
tree2e2514ac651a195b2ad932ec76192cc8442bfc55
parent62004fa05ec83543ba822fa2cb1dc4f2ba2167f5 (diff)
downloadchromium_src-a006e1878613f46b7b0a8ca80ce5017a28e8cf4f.zip
chromium_src-a006e1878613f46b7b0a8ca80ce5017a28e8cf4f.tar.gz
chromium_src-a006e1878613f46b7b0a8ca80ce5017a28e8cf4f.tar.bz2
Add support for the Home and End keys to the keyDown() method.
BUG=17589 TEST=LayoutTests/fast/forms/select-popup-pagekeys.html Review URL: http://codereview.chromium.org/159299 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21458 0039d316-1c4b-4281-b951-d872f2087c98
-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 a29978f..0e1939a 100644
--- a/webkit/tools/test_shell/event_sending_controller.cc
+++ b/webkit/tools/test_shell/event_sending_controller.cc
@@ -392,6 +392,10 @@ void EventSendingController::keyDown(
code = WebCore::VKEY_PRIOR;
} else if (L"pageDown" == code_str) {
code = WebCore::VKEY_NEXT;
+ } else if (L"home" == code_str) {
+ code = WebCore::VKEY_HOME;
+ } else if (L"end" == code_str) {
+ code = WebCore::VKEY_END;
} else {
DCHECK(code_str.length() == 1);
code = code_str[0];