fix text selection bug
authorSeongjun Yim <se201.yim@samsung.com>
Mon, 6 May 2013 08:00:56 +0000 (17:00 +0900)
committerSeongjun Yim <se201.yim@samsung.com>
Mon, 6 May 2013 08:41:14 +0000 (17:41 +0900)
Change-Id: Ia56fad6de6ea6fd449fd4bbc83a3c99d721c3f3b
Signed-off-by: Seongjun Yim <se201.yim@samsung.com>
src/controls/FWebCtrl_WebImpl.cpp

index f01cf0d..5d941af 100755 (executable)
@@ -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.");