From 627e1c111c8953a3790b554544bd1268eb9db9c3 Mon Sep 17 00:00:00 2001 From: Seongjun Yim Date: Wed, 17 Jul 2013 21:00:46 +0900 Subject: [PATCH] fix text selection issue Change-Id: I49f8972621e1ac0ef3eac28bde93fc775757cafe Signed-off-by: Seongjun Yim --- src/controls/FWebCtrl_WebImpl.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/controls/FWebCtrl_WebImpl.cpp b/src/controls/FWebCtrl_WebImpl.cpp index 49e19bd..47a7e1e 100755 --- a/src/controls/FWebCtrl_WebImpl.cpp +++ b/src/controls/FWebCtrl_WebImpl.cpp @@ -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; -- 2.7.4