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

Unified Diff: Source/core/html/BaseMultipleFieldsDateAndTimeInputType.cpp

Issue 16194013: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
Index: Source/core/html/BaseMultipleFieldsDateAndTimeInputType.cpp
diff --git a/Source/core/html/BaseMultipleFieldsDateAndTimeInputType.cpp b/Source/core/html/BaseMultipleFieldsDateAndTimeInputType.cpp
index 4f1400a697901bc8ba8228bea6379345049bf025..9d7d8bb0d722bd370627d9c452afe0a106df1abf 100644
--- a/Source/core/html/BaseMultipleFieldsDateAndTimeInputType.cpp
+++ b/Source/core/html/BaseMultipleFieldsDateAndTimeInputType.cpp
@@ -361,7 +361,7 @@ void BaseMultipleFieldsDateAndTimeInputType::handleFocusEvent(Node* oldFocusedNo
if (direction == FocusDirectionBackward) {
if (element()->document()->page())
element()->document()->page()->focusController()->advanceFocus(direction, 0);
- } else if (direction == FocusDirectionNone) {
+ } else if (direction == FocusDirectionNone || direction == FocusDirectionMouse) {
m_dateTimeEditElement->focusByOwner(oldFocusedNode);
} else
m_dateTimeEditElement->focusByOwner();
@@ -416,11 +416,6 @@ bool BaseMultipleFieldsDateAndTimeInputType::isKeyboardFocusable(KeyboardEvent*)
return element()->isFocusable();
}
-bool BaseMultipleFieldsDateAndTimeInputType::isMouseFocusable() const
-{
- return element()->isFocusable();
-}
-
AtomicString BaseMultipleFieldsDateAndTimeInputType::localeIdentifier() const
{
return element()->computeInheritedLanguage();

Powered by Google App Engine
This is Rietveld 408576698