From 209fe9f0fb738e0771f10d68bcc97fce77494a68 Mon Sep 17 00:00:00 2001 From: "tc@google.com" Date: Tue, 21 Oct 2008 21:45:54 +0000 Subject: 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 --- chrome/browser/render_view_host.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/render_view_host.cc') 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); -- cgit v1.1