Set focus on first color rect after color popup is shown
authorKwangYong Choi <ky0.choi@samsung.com>
Fri, 4 Oct 2013 02:24:39 +0000 (11:24 +0900)
committerKwangYong Choi <ky0.choi@samsung.com>
Fri, 4 Oct 2013 05:07:30 +0000 (14:07 +0900)
[Title] Set focus on first color rect after color popup is shown.
[Issue#] N-SE_54041
[Problem] Sometimes focus is remained on webview. So, it's not possible
          to select color with keyboard.
[Cause] N/A
[Solution] Set focus on first color rect after color popup is shown.

Change-Id: I6260dfdaba41d7170a3f6490b18a27d71f5ae2b2

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

index 80238b8..bbfef47 100755 (executable)
@@ -578,6 +578,10 @@ void InputPicker::ewk_color_popup(int r, int g, int b)
 
     static ColorPopupUserData color14Data;
     addColorRect("elm.swallow.color14", 255, 255, 255, &color14Data);
+
+    // Set focus on first color rect.
+    if (color1Data.colorAccessObject)
+        elm_object_focus_set(color1Data.colorAccessObject, true);
 #endif
     m_pickerLayout->okButton = elm_button_add(m_pickerLayout->popup);
     elm_object_style_set(m_pickerLayout->okButton, "popup");