Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(689)

Unified Diff: content/browser/renderer_host/input/web_input_event_builders_win.cc

Issue 419283003: Fix 'repeat' state of a DOM KeyboardEvent on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698