| Index: third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| index a599bc244cc220be9c5bee68ad776c046aa22b0d..146cda0ea62887b5c18c9fa0ddcff47b508dc616 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| @@ -45,6 +45,8 @@
|
| #include "core/layout/LayoutObject.h"
|
| #include "core/layout/LayoutTheme.h"
|
| #include "core/page/ChromeClient.h"
|
| +#include "core/page/FocusController.h"
|
| +#include "core/page/Page.h"
|
|
|
| namespace blink {
|
|
|
| @@ -1133,6 +1135,14 @@ int InputMethodController::TextInputFlags() const {
|
| }
|
| }
|
|
|
| + if (GetDocument().GetPage()->GetFocusController().NextFocusableElementInForm(
|
| + element, kWebFocusTypeForward))
|
| + flags |= kWebTextInputFlagHaveNextFocusableElement;
|
| +
|
| + if (GetDocument().GetPage()->GetFocusController().NextFocusableElementInForm(
|
| + element, kWebFocusTypeBackward))
|
| + flags |= kWebTextInputFlagHavePreviousFocusableElement;
|
| +
|
| return flags;
|
| }
|
|
|
|
|