summaryrefslogtreecommitdiffstats
path: root/WebCore/html/BaseDateAndTimeInputType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/BaseDateAndTimeInputType.cpp')
-rw-r--r--WebCore/html/BaseDateAndTimeInputType.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/html/BaseDateAndTimeInputType.cpp b/WebCore/html/BaseDateAndTimeInputType.cpp
index e1126d4..e780ed6 100644
--- a/WebCore/html/BaseDateAndTimeInputType.cpp
+++ b/WebCore/html/BaseDateAndTimeInputType.cpp
@@ -108,6 +108,11 @@ double BaseDateAndTimeInputType::stepBase() const
return parseToDouble(element()->fastGetAttribute(minAttr), defaultStepBase());
}
+bool BaseDateAndTimeInputType::handleKeydownEvent(KeyboardEvent* event)
+{
+ return handleKeydownEventForSpinButton(event) || TextFieldInputType::handleKeydownEvent(event);
+}
+
double BaseDateAndTimeInputType::parseToDouble(const String& src, double defaultValue) const
{
DateComponents date;