if (pImpl->IsWinFocusLost() == true)
{
- if (pImpl->IsKeypadOpened() == true)
- {
- evas_object_focus_set(pWebCore->GetWebNativeNode(), EINA_TRUE);
- }
-
Ewk_Settings* pSettings = ewk_view_settings_get(pWebCore->GetWebNativeNode());
SysAssertf(pSettings, "Failed to get settings instance.");
evas_object_focus_set(pWebCore->GetWebNativeNode(), EINA_TRUE);
}
+ else if (pImpl->IsKeypadOpened() == true)
+ {
+ evas_object_focus_set(pWebCore->GetWebNativeNode(), EINA_TRUE);
+ }
}
}
_WebImpl* pImpl = reinterpret_cast< _WebImpl* >(pUserData);
SysAssertf(pImpl, "Failed to request");
- if (pImpl->IsWinFocusLost() == true)
- {
- _Web* pWebCore = dynamic_cast< _Web* >(&(pImpl->GetCore()));
- SysAssertf(pWebCore, "Failed to get Web core object");
+ _Web* pWebCore = dynamic_cast< _Web* >(&(pImpl->GetCore()));
+ SysAssertf(pWebCore, "Failed to get Web core object");
+
+ Eina_Rectangle leftHandle;
+ Eina_Rectangle rightHandle;
+ EINA_RECTANGLE_SET(&leftHandle, 0, 0, 0, 0);
+ EINA_RECTANGLE_SET(&rightHandle, 0, 0, 0, 0);
+
+ if (pImpl->IsWinFocusLost() == true && ewk_view_text_selection_range_get(pWebCore->GetWebNativeNode(), &leftHandle, &rightHandle))
+ {
Ewk_Settings* pSettings = ewk_view_settings_get(pWebCore->GetWebNativeNode());
SysAssertf(pSettings, "Failed to get settings instance.");