Fixed "Select Month" popup does not appear after long tap on Month text field in...
authorYuni Jeong <yhnet.jung@samsung.com>
Fri, 10 May 2013 12:28:11 +0000 (21:28 +0900)
committerYuni Jeong <yhnet.jung@samsung.com>
Fri, 10 May 2013 12:28:11 +0000 (21:28 +0900)
[Title] Fixed "Select Month" popup does not appear after long tap on Month text field in Entry window in TizenWinset.
[Issue#] N_SE_38090
[Problem] "Select Month" popup does not appear after long tap on Month text field in Entry window in TizenWinset.
[Cause] Caret selection is working when input type is picker type and string is empty.
        So, caret is shown and input picker is not shwon
[Solution] Do not perform selection operation when input type is picker type and string is empty.
            - picker type : "date", "datetime", "datetime-local", "month", "time" or week"

Change-Id: I7ac5373a69bd121134293457ea9caae74435ac3d

Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp

index c3b5330..6f4aeb6 100644 (file)
@@ -1226,6 +1226,15 @@ void WebPage::selectClosestWord(const IntPoint& point, bool isStartedTextSelecti
 #endif
         return;
 
+#if ENABLE(TIZEN_INPUT_TAG_EXTENSION)
+    if (inputElement
+        && (inputElement->isDateField() || inputElement->isDateTimeField() || inputElement->isDateTimeLocalField()
+        || inputElement->isMonthField() || inputElement->isTimeField() || inputElement->isWeekField())) {
+        if (inputElement->value().isEmpty())
+            return;
+    }
+#endif
+
     if (!isStartedTextSelectionFromOutside) {
         for (Node* node = hitTestResult.innerNonSharedNode(); node; node = node->parentNode()) {
             if (node->isFocusable()) {