summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/page/focus_controller.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-06-27 11:18:24 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-07-03 09:38:30 +0000
commitd94af01c90575348c4e81a418257f254b6f8d225 (patch)
tree77a26669b33eaa4d46b88b07e17dacc61eba6001 /chromium/third_party/blink/renderer/core/page/focus_controller.cc
parent5d87695f37678f96492b258bbab36486c59866b4 (diff)
downloadqtwebengine-chromium-d94af01c90575348c4e81a418257f254b6f8d225.tar.gz
BASELINE: Update Chromium to 75.0.3770.116
Change-Id: Ifcd5227841577e8ce81a1b7a54c56caba4d85e02 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/page/focus_controller.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/page/focus_controller.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/page/focus_controller.cc b/chromium/third_party/blink/renderer/core/page/focus_controller.cc
index 8e8348de9a5..041804d5ec7 100644
--- a/chromium/third_party/blink/renderer/core/page/focus_controller.cc
+++ b/chromium/third_party/blink/renderer/core/page/focus_controller.cc
@@ -1158,9 +1158,12 @@ Element* FocusController::NextFocusableElementInForm(Element* element,
if (form_element->formOwner() != form_owner ||
form_element->IsDisabledOrReadOnly())
continue;
- // Focusless spatial navigation supports all form types.
+ // Focusless spatial navigation supports all form types. However, submit
+ // buttons are explicitly excluded as moving to them isn't necessary - the
+ // IME should just submit instead.
if (RuntimeEnabledFeatures::FocuslessSpatialNavigationEnabled() &&
- page_->GetSettings().GetSpatialNavigationEnabled()) {
+ page_->GetSettings().GetSpatialNavigationEnabled() &&
+ !form_element->CanBeSuccessfulSubmitButton()) {
return next_element;
}
LayoutObject* layout = next_element->GetLayoutObject();