{
SendTouchEventForJavaScript(touchInfo);
+ Evas_Object* pView = GetWebNativeNode();
+ _WebImpl* pImpl = reinterpret_cast< _WebImpl* >(evas_object_data_get(pView, WEB_CTRL));
+
+ if (pImpl && pImpl->GetTextFromBlock().GetLength() > 0)
+ {
+ evas_object_smart_callback_call(pView, "text,selected", NULL);
+ }
+
return __pGestureHandler->OnTouchReleased(source, touchInfo);
}
evas_object_smart_callback_add(pWebNativeNode, "touchmove,handled", OnWebPreventDefaultTriggered, this);
evas_object_smart_callback_add(pWebNativeNode, "icon,received", OnFaviconReceived, this);
- evas_object_smart_callback_add(pWebNativeNode, "text,style,state", OnWebPageBlockSelected, this);
+ evas_object_smart_callback_add(pWebNativeNode, "text,selected", OnWebPageBlockSelected, this);
evas_object_smart_callback_add(pWebNativeNode, "frame,rendered", OnWebPageBlockSelectedByOrientation, this);
ewk_view_open_panel_callback_set(pWebNativeNode, OnSelectUploadFile, const_cast< _WebImpl* >(this));
evas_object_smart_callback_del(pWebNativeNode, "touchmove,handled", OnWebPreventDefaultTriggered);
evas_object_smart_callback_del(pWebNativeNode, "icon,received", OnFaviconReceived);
- evas_object_smart_callback_del(pWebNativeNode, "text,style,state", OnWebPageBlockSelected);
+ evas_object_smart_callback_del(pWebNativeNode, "text,selected", OnWebPageBlockSelected);
evas_object_smart_callback_del(pWebNativeNode, "frame,rendered", OnWebPageBlockSelectedByOrientation);
ewk_view_open_panel_callback_set(null, null, null);
SysTryReturnResult(NID_WEB_CTRL, GetTextFromBlock().GetLength() > 0, E_INVALID_ARG, "Failed to set text selection up.");
+ evas_object_smart_callback_call(pView, "text,selected", NULL);
+
return E_SUCCESS;
}