summaryrefslogtreecommitdiffstats
path: root/webkit/glue/editor_client_impl.cc
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 18:51:49 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-07 18:51:49 +0000
commitded678ec915e3ca698c91d67611ba48f8a938511 (patch)
treef9e1bd118b9b25f4aee983c5fa2d51569294e44d /webkit/glue/editor_client_impl.cc
parentadfb96766acd6e5ac6ef3654f258ee57747570c8 (diff)
downloadchromium_src-ded678ec915e3ca698c91d67611ba48f8a938511.zip
chromium_src-ded678ec915e3ca698c91d67611ba48f8a938511.tar.gz
chromium_src-ded678ec915e3ca698c91d67611ba48f8a938511.tar.bz2
Fix keyboard unit test.
We work around all event names being null (!!!) by testing a enum instead. This code should be faster anyway, but I will also investigate the enum. Review URL: http://codereview.chromium.org/9495 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/editor_client_impl.cc')
-rw-r--r--webkit/glue/editor_client_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/glue/editor_client_impl.cc b/webkit/glue/editor_client_impl.cc
index bcc431d..722d5fb 100644
--- a/webkit/glue/editor_client_impl.cc
+++ b/webkit/glue/editor_client_impl.cc
@@ -543,7 +543,7 @@ const char* EditorClientImpl::interpretKeyEvent(
if (keyEvent->metaKey())
modifiers |= MetaKey;
- if (evt->type() == WebCore::EventNames::keydownEvent) {
+ if (keyEvent->type() == WebCore::PlatformKeyboardEvent::RawKeyDown) {
int mapKey = modifiers << 16 | evt->keyCode();
return mapKey ? keyDownCommandsMap->get(mapKey) : 0;
}