summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_view_host.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-21 21:45:54 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-21 21:45:54 +0000
commit209fe9f0fb738e0771f10d68bcc97fce77494a68 (patch)
treeb70c9f213f0e301298db7e87000dbe4c4c609b84 /chrome/browser/render_view_host.cc
parentda4c5d1179de98452d0e36a34a41e45d7506a6c6 (diff)
downloadchromium_src-209fe9f0fb738e0771f10d68bcc97fce77494a68.zip
chromium_src-209fe9f0fb738e0771f10d68bcc97fce77494a68.tar.gz
chromium_src-209fe9f0fb738e0771f10d68bcc97fce77494a68.tar.bz2
Remove WebKeyboardEvent::key_data because we don't actually use it
anymore. This makes WebKeyboardEvent easier to port to other platforms. Review URL: http://codereview.chromium.org/8026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3692 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_view_host.cc')
-rw-r--r--chrome/browser/render_view_host.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/render_view_host.cc b/chrome/browser/render_view_host.cc
index c5db911..2c9c876 100644
--- a/chrome/browser/render_view_host.cc
+++ b/chrome/browser/render_view_host.cc
@@ -1134,7 +1134,7 @@ void RenderViewHost::UnhandledInputEvent(const WebInputEvent& event) {
void RenderViewHost::ForwardKeyboardEvent(const WebKeyboardEvent& key_event) {
if (key_event.type == WebKeyboardEvent::CHAR &&
- (key_event.key_data == '\n' || key_event.key_data == ' ')) {
+ (key_event.key_code == VK_RETURN || key_event.key_code == VK_SPACE)) {
delegate_->OnEnterOrSpace();
}
RenderWidgetHost::ForwardKeyboardEvent(key_event);