summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-09 19:22:17 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-09 19:22:17 +0000
commit48d33655b38f1d170f93557996a53b64d64f3a4e (patch)
tree1abbac5f28a5978850e3773880c442db3826eaed /webkit/glue/webview_impl.cc
parent1ff45871a02cb6d42535c0f9ec317fd88d876248 (diff)
downloadchromium_src-48d33655b38f1d170f93557996a53b64d64f3a4e.zip
chromium_src-48d33655b38f1d170f93557996a53b64d64f3a4e.tar.gz
chromium_src-48d33655b38f1d170f93557996a53b64d64f3a4e.tar.bz2
Linux: the WebKeyboardEvent key_code field is the windows key code, not the native key code.
Also match windows behavior for setting m_text field of platform event equal to key_code. update: fixes at least 7 layout tests. Review URL: http://codereview.chromium.org/12981 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6607 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r--webkit/glue/webview_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index 67285ff..c07825c 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -513,12 +513,12 @@ bool WebViewImpl::CharEvent(const WebKeyboardEvent& event) {
if (!evt.IsCharacterKey())
return true;
-#if defined(OS_WIN)
- // Safari 3.1 does not pass off WM_SYSCHAR messages to the
- // eventHandler::keyEvent. We mimic this behavior.
+ // Safari 3.1 does not pass off windows system key messages (WM_SYSCHAR) to
+ // the eventHandler::keyEvent. We mimic this behavior on all platforms since
+ // for now we are converting other platform's key events to windows key
+ // events.
if (evt.isSystemKey())
return handler->handleAccessKey(evt);
-#endif
if (!handler->keyEvent(evt))
return KeyEventDefault(event);