Cancel focus ui when ewkview loses focus
authorSangYong Park <sy302.park@samsung.com>
Tue, 27 Aug 2013 12:50:53 +0000 (21:50 +0900)
committerSangYong Park <sy302.park@samsung.com>
Tue, 27 Aug 2013 12:50:53 +0000 (21:50 +0900)
[Title] Cancel focus ui when ewkview loses focus
[Issue#] N_SE-49420
[Problem] Two focus rings are appeared on screen
[Cause] Do not hide focus ring when ewkview loses focus
[Solution] Cancel focus ui when ewkview loses focus

Change-Id: I3247d7ca50b080ce1e01fa6fdac6551de25f6ec1

Source/WebKit2/UIProcess/efl/InputMethodContextEfl.cpp

index 745b03a..5eb8030 100755 (executable)
@@ -391,7 +391,7 @@ void InputMethodContextEfl::handleMouseUpEvent(const Evas_Event_Mouse_Up*)
 void InputMethodContextEfl::handleKeyDownEvent(const Evas_Event_Key_Down* downEvent, bool* isFiltered)
 {
 #if ENABLE(TIZEN_FOCUS_UI)
-    if (s_shouldUseExternalKeyboard)
+    if (s_shouldUseExternalKeyboard && strncmp(downEvent->keyname, "XF86", 4))
         m_viewImpl->page()->setSpatialNavigationEnabled(true);
 #endif
 
@@ -605,6 +605,10 @@ void InputMethodContextEfl::onFocusOut()
     }
 #endif
 
+#if ENABLE(TIZEN_FOCUS_UI)
+    m_viewImpl->page()->setSpatialNavigationEnabled(false);
+#endif
+
     if (!m_context || !m_focused)
         return;