Index: third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
diff --git a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
index c27e4239e7f7b8a178a101b1bb83b47beb9fcc27..a7076a8a11870013d3ef71eabffff4b4ec02f008 100644 |
--- a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
+++ b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp |
@@ -11,6 +11,7 @@ |
#include "core/html/HTMLDialogElement.h" |
#include "core/input/EventHandler.h" |
#include "core/input/EventHandlingUtil.h" |
+#include "core/input/InputDeviceCapabilities.h" |
#include "core/input/ScrollManager.h" |
#include "core/layout/LayoutObject.h" |
#include "core/layout/LayoutTextControlSingleLine.h" |
@@ -394,9 +395,11 @@ void KeyboardEventManager::defaultTabEventHandler(KeyboardEvent* event) { |
if (m_frame->document()->inDesignMode()) |
return; |
- if (page->focusController().advanceFocus( |
- focusType, |
- InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities())) |
+ if (page->focusController().advanceFocus(focusType, |
+ m_frame->document() |
+ ->domWindow() |
+ ->getInputDeviceCapabilities() |
+ ->firesTouchEvents(false))) |
event->setDefaultHandled(); |
} |