fix text selection issue
authorSeongjun Yim <se201.yim@samsung.com>
Wed, 17 Jul 2013 12:00:46 +0000 (21:00 +0900)
committerSeongjun Yim <se201.yim@samsung.com>
Wed, 17 Jul 2013 12:00:46 +0000 (21:00 +0900)
Change-Id: I49f8972621e1ac0ef3eac28bde93fc775757cafe
Signed-off-by: Seongjun Yim <se201.yim@samsung.com>
src/controls/FWebCtrl_WebImpl.cpp

index 49e19bd..47a7e1e 100755 (executable)
@@ -4798,6 +4798,12 @@ _WebImpl::GetParentFormCore(_Control* pControlCore)
 bool 
 _WebImpl::OnFocusGained(const _ControlImpl& source)
 {
+       Ewk_Settings* pSettings = ewk_view_settings_get(__pWebCore->GetWebNativeNode());
+       SysAssertf(pSettings, "Failed to get webkit instance.");
+       ewk_settings_clear_text_selection_automatically_set(pSettings, true);
+
+       evas_object_focus_set(__pWebCore->GetWebNativeNode(), EINA_TRUE);
+
        return false;
 }
 
@@ -4812,6 +4818,10 @@ _WebImpl::OnFocusLost(const _ControlImpl& source)
                SetKeypadVisibleState(false);
        }
 
+       Ewk_Settings* pSettings = ewk_view_settings_get(__pWebCore->GetWebNativeNode());
+       SysAssertf(pSettings, "Failed to get webkit instance.");
+       ewk_settings_clear_text_selection_automatically_set(pSettings, false);
+
        evas_object_focus_set(__pWebCore->GetWebNativeNode(), EINA_FALSE);
 
        return false;