From f4a2c12d758fc7afbd4cc2c8e0b439eed458462d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 6 Feb 2014 19:43:30 +0800 Subject: [PATCH] Use keydown event for accelerator. This follows the behaivor on OS X, fixed #174. --- browser/native_window_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/native_window_win.cc b/browser/native_window_win.cc index a99a4a0b49..2bbe78e90b 100644 --- a/browser/native_window_win.cc +++ b/browser/native_window_win.cc @@ -417,7 +417,7 @@ void NativeWindowWin::UpdateDraggableRegions( void NativeWindowWin::HandleKeyboardEvent( content::WebContents*, const content::NativeWebKeyboardEvent& event) { - if (event.type == WebKit::WebInputEvent::KeyUp) { + if (event.type == WebKit::WebInputEvent::RawKeyDown) { ui::Accelerator accelerator( static_cast(event.windowsKeyCode), content::GetModifiersFromNativeWebKeyboardEvent(event));