Set the focus again when trying to show picker even though it already is shown
authorTaeyun An <ty.an@samsung.com>
Tue, 9 Jul 2013 07:14:47 +0000 (16:14 +0900)
committerTaeyun An <ty.an@samsung.com>
Tue, 9 Jul 2013 07:14:47 +0000 (16:14 +0900)
[Title] Set the focus again when trying to show picker even though it already is shown
[Issue#] N_SE-44406
[Problem] WebApp is closed when seleting H/W back key in the state of showing picker
[Cause] the webview has focus when showing the picker
[Solution] Set the focus again when trying to show picker even though it already is shown

Change-Id: I15d81fda393fcd70c2de97548a78ecae1ae07489

Source/WebKit2/UIProcess/API/efl/tizen/InputPicker.cpp

index 7e960e6..6a59612 100755 (executable)
@@ -593,6 +593,7 @@ void InputPicker::ewk_date_popup(const char* inputValue)
     if (m_pickerLayout) {
         // Just update the value.
         elm_datetime_value_set(m_pickerLayout->datePicker, currentTime);
+        evas_object_focus_set(m_pickerLayout->okButton, true);
         return;
     }
 
@@ -792,6 +793,7 @@ void InputPicker::ewk_week_popup(const char* inputValue)
     if (m_pickerLayout) {
         // Just update the value.
         elm_datetime_value_set(m_pickerLayout->datePicker, currentTime);
+        evas_object_focus_set(m_pickerLayout->okButton, true);
         return;
     }
 
@@ -874,6 +876,7 @@ void InputPicker::ewk_time_popup(const char* inputValue)
     if (m_pickerLayout) {
         // Just update the value.
         elm_datetime_value_set(m_pickerLayout->timePicker, currentTime);
+        evas_object_focus_set(m_pickerLayout->okButton, true);
         return;
     }
 
@@ -957,6 +960,7 @@ void InputPicker::ewk_month_popup(const char* inputValue)
     if (m_pickerLayout) {
         // Just update the value.
         elm_datetime_value_set(m_pickerLayout->datePicker, currentTime);
+        evas_object_focus_set(m_pickerLayout->okButton, true);
         return;
     }
 
@@ -1054,6 +1058,7 @@ void InputPicker::ewk_datetime_popup(const char* inputValue, bool local)
 
         elm_datetime_value_set(m_pickerLayout->datePicker, currentTime);
         elm_datetime_value_set(m_pickerLayout->timePicker, currentTime);
+        evas_object_focus_set(m_pickerLayout->okButton, true);
         return;
     }