| Index: third_party/WebKit/Source/core/events/KeyboardEvent.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
|
| index 6e6b84795beb7c58f03d24558fd8f930a2183b1e..e7581e89641e43fe8bd7ffc3d7428ece99f9be6b 100644
|
| --- a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
|
| +++ b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
|
| @@ -25,6 +25,7 @@
|
| #include "bindings/core/v8/DOMWrapperWorld.h"
|
| #include "bindings/core/v8/ScriptState.h"
|
| #include "core/editing/InputMethodController.h"
|
| +#include "core/input/InputDeviceCapabilities.h"
|
| #include "platform/WindowsKeyboardCodes.h"
|
| #include "public/platform/Platform.h"
|
| #include "public/platform/WebInputEvent.h"
|
| @@ -96,7 +97,9 @@ KeyboardEvent::KeyboardEvent(const WebKeyboardEvent& key,
|
| 0,
|
| static_cast<PlatformEvent::Modifiers>(key.modifiers()),
|
| TimeTicks::FromSeconds(key.timeStampSeconds()),
|
| - InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities()),
|
| + domWindow
|
| + ? domWindow->getInputDeviceCapabilities()->firesTouchEvents(false)
|
| + : nullptr),
|
| m_keyEvent(WTF::makeUnique<WebKeyboardEvent>(key)),
|
| // TODO(crbug.com/482880): Fix this initialization to lazy initialization.
|
| m_code(Platform::current()->domCodeStringFromEnum(key.domCode)),
|
|
|