Chromium Code Reviews| Index: content/browser/renderer_host/input/web_input_event_builders_win.cc |
| diff --git a/content/browser/renderer_host/input/web_input_event_builders_win.cc b/content/browser/renderer_host/input/web_input_event_builders_win.cc |
| index 19e8fc617710be0e013ccb54ac325b041f8cd77e..aafddccab69049dc79bfe4ab4e4e792d84056258 100644 |
| --- a/content/browser/renderer_host/input/web_input_event_builders_win.cc |
| +++ b/content/browser/renderer_host/input/web_input_event_builders_win.cc |
| @@ -160,7 +160,7 @@ WebKeyboardEvent WebKeyboardEventBuilder::Build(HWND hwnd, |
| // NOTE: There doesn't seem to be a way to query the mouse button state in |
| // this case. |
| - if (LOWORD(lparam) > 1) |
| + if (lparam & (1 << 30)) |
|
jamesr
2014/07/28 19:38:49
the rest of this file uses & 0xXXXXX for masks, yo
|
| result.modifiers |= WebInputEvent::IsAutoRepeat; |
| result.modifiers |= GetLocationModifier(wparam, lparam); |