summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
authorsuzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-06 04:12:44 +0000
committersuzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-06 04:12:44 +0000
commit9957b83c2d57900362074ebb25cde4d5e8ba8d57 (patch)
tree7122d74e34ca13c93522e78c377beca6e69b7b98 /chrome/browser/renderer_host
parentc4673fde58e0d5dc11060d9875b38516d785deed (diff)
downloadchromium_src-9957b83c2d57900362074ebb25cde4d5e8ba8d57.zip
chromium_src-9957b83c2d57900362074ebb25cde4d5e8ba8d57.tar.gz
chromium_src-9957b83c2d57900362074ebb25cde4d5e8ba8d57.tar.bz2
Fix bug 36699: Alt+Enter in windows XP+Chrome gives incorrect keycodes!!
BUG=36699 TEST=See bug report. Review URL: http://codereview.chromium.org/660167 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_win.cc b/chrome/browser/renderer_host/render_widget_host_view_win.cc
index 923eab3..ce0c1d7 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_win.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_win.cc
@@ -1334,7 +1334,7 @@ LRESULT RenderWidgetHostViewWin::OnKeyEvent(UINT message, WPARAM wparam,
// window. This code filters out these messages.
bool ignore_keyboard_event = false;
if (wparam == VK_RETURN) {
- if (message == WM_KEYDOWN) {
+ if (message == WM_KEYDOWN || message == WM_SYSKEYDOWN) {
if (KF_REPEAT & HIWORD(lparam)) {
// this is a repeated key
if (!capture_enter_key_)
@@ -1342,7 +1342,7 @@ LRESULT RenderWidgetHostViewWin::OnKeyEvent(UINT message, WPARAM wparam,
} else {
capture_enter_key_ = true;
}
- } else if (message == WM_KEYUP) {
+ } else if (message == WM_KEYUP || message == WM_SYSKEYUP) {
if (!capture_enter_key_)
ignore_keyboard_event = true;
capture_enter_key_ = false;