Skip to content

Commit 7ef833c

Browse files
committed
<third_party/WebKit> Fix key event crash on Windows.
This fixes the ASSERT that was triggerd on Windows in PlatformKeyboardEvent::disambiguateKeyDownEvent because we do our own conversion from native events to web events. This is the same way it was handled in the Qt specific PlatformKeyboardEvent in WebKit. Change-Id: I177c238bde1e0101b6abe9d5bbe3ba2e47908f1a Reviewed-by: Andras Becsi <[email protected]>
1 parent 0a07797 commit 7ef833c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chromium/third_party/WebKit/Source/platform/PlatformKeyboardEvent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static const unsigned short HIGHBITMASKSHORT = 0x8000;
4343

4444
void PlatformKeyboardEvent::disambiguateKeyDownEvent(Type type)
4545
{
46-
#if OS(WIN)
46+
#if OS(WIN) && !defined(TOOLKIT_QT)
4747
// No KeyDown events on Windows to disambiguate.
4848
ASSERT_NOT_REACHED();
4949
#else

0 commit comments

Comments
 (0)