Fix openning picker when view does not have focus
authorTaeyun An <ty.an@samsung.com>
Mon, 8 Jul 2013 08:45:33 +0000 (17:45 +0900)
committerTaeyun An <ty.an@samsung.com>
Mon, 8 Jul 2013 08:45:33 +0000 (17:45 +0900)
[Title] Fix openning picker when view does not have focus
[Issue#]  N/A
[Problem] picker is not shown
[Cause] do not set the focus the entry is for the picker
[Solution] do not focus just when picker is already shown

Change-Id: I04b3ea73b274d3255f429ec4bf5e274964cb1f94

Source/WebKit2/UIProcess/WebPageProxy.cpp
Source/WebKit2/UIProcess/efl/InputMethodContextEfl.h

index 2a72652..4bf24b0 100755 (executable)
@@ -3815,8 +3815,11 @@ void WebPageProxy::didReceiveEvent(uint32_t opaqueType, bool handled)
                 || m_editorState.inputMethodHints == "datetime-local"
                 || m_editorState.inputMethodHints == "month"
                 || m_editorState.inputMethodHints == "time"
-                || m_editorState.inputMethodHints == "week")
-                break;
+                || m_editorState.inputMethodHints == "week") {
+                InputMethodContextEfl* inputMethodContext = static_cast<PageClientImpl*>(m_pageClient)->viewImpl()->inputMethodContext();
+                if (inputMethodContext->inputPickerType() == -1)
+                    break;
+            }
 #endif
             evas_object_focus_set(viewWidget(), true);
         }
index 8c6698a..7dd31c8 100755 (executable)
@@ -61,6 +61,7 @@ public:
     void hideIMFContext();
     bool isIMEPostion(int, int);
     void removeIMFContext(uintptr_t);
+    int inputPickerType() { return m_inputPickerType; }
 #endif
 
 private: