From: Seongjun Yim Date: Mon, 6 May 2013 08:00:56 +0000 (+0900) Subject: fix text selection bug X-Git-Tag: submit/tizen_2.1/20130514.054703~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=181b7b84d2a5ed067892738ec331567cefc360fb;p=framework%2Fosp%2Fweb.git fix text selection bug Change-Id: Ia56fad6de6ea6fd449fd4bbc83a3c99d721c3f3b Signed-off-by: Seongjun Yim --- diff --git a/src/controls/FWebCtrl_WebImpl.cpp b/src/controls/FWebCtrl_WebImpl.cpp index f01cf0d..5d941af 100755 --- a/src/controls/FWebCtrl_WebImpl.cpp +++ b/src/controls/FWebCtrl_WebImpl.cpp @@ -3501,6 +3501,15 @@ _WebImpl::SetBlockSelectionPosition(const Point& startPoint) { ewk_view_command_execute(pWebNativeNode, "SelectWord", 0); } + else + { + Eina_Hash* pAttrHash = ewk_hit_test_attribute_hash_get(pEwkHitTest); + char* pValue = reinterpret_cast< char* >(eina_hash_find(pAttrHash, "contenteditable")); + if(pValue) + { + ewk_view_command_execute(pWebNativeNode, "SelectWord", 0); + } + } } SysTryReturnResult(NID_WEB_CTRL, GetTextFromBlock().GetLength() > 0, E_INVALID_ARG, "Failed to set text selection up.");