Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Unified Diff: third_party/WebKit/Source/core/html/forms/RadioInputType.cpp

Issue 2620843004: Radio input keyboard navigation scroll (Closed)
Patch Set: This patch scrolls the parent container while navigating through the radio input using keyboard Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/radio/radio-input-keyboard-navigation.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
index 22790940dfe0207b69e0f09fb5889937ff751beb..afccb276484087bc82a9485419801c763dfad79a 100644
--- a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
@@ -126,9 +126,9 @@ void RadioInputType::handleKeydownEvent(KeyboardEvent* event) {
}
}
if (inputElement) {
- document.setFocusedElement(
- inputElement,
- FocusParams(SelectionBehaviorOnFocus::None, WebFocusTypeNone, nullptr));
+ document.setFocusedElement(inputElement,
+ FocusParams(SelectionBehaviorOnFocus::Restore,
+ WebFocusTypeNone, nullptr));
inputElement->dispatchSimulatedClick(event, SendNoEvents);
event->setDefaultHandled();
return;
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/forms/radio/radio-input-keyboard-navigation.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698