DescriptionFix 'repeat' state of a DOM KeyboardEvent on Windows
The WM_KEYDOWN-to-WebKeyboardEvent mapping was incorrect, probably
because MSDN is not helpful. Bits 0-15 of lParam are the number of
coalesced events that this message represents (which is 1 unless
you're not pumping messages fast enough). Bit 30 of lParam represents
the previous key state - i.e. if it was already down; if so, this
is a repeat.
This manifests in the 'repeat' state of a DOM KeyboardEvent.
BUG=263724, 394907
TEST=window.onkeydown=function(e){console.log(e.repeat);};
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286090
Patch Set 1 #
Total comments: 1
Patch Set 2 : Use 0xXXXX for mask, add comment #Messages
Total messages: 12 (0 generated)
|