bool
_Web::OnTouchReleased(const _Control& source, const _TouchInfo& touchInfo)
{
+ SetFocused();
+
if (__pEflWebkit.get())
{
SendTouchEventForJavaScript(touchInfo);
return __pGestureHandler->OnTouchReleased(source, touchInfo);
}
- SetFocused();
-
return true;
}
_Form* pFormCore = pImpl->GetParentFormCore(dynamic_cast< _Control* >(&pImpl->GetCore()));
SysAssertf(pFormCore != null, "Failed to get FormCore");
- if (pFormCore->HasFooter() && pImpl->IsFooterVisible())
+ if (pImpl->IsKeypadVisible())
{
- pImpl->SetFooterVisibleState(false);
- pFormCore->SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, true);
- }
+ if (pFormCore->HasFooter() && pImpl->IsFooterVisible())
+ {
+ pImpl->SetFooterVisibleState(false);
+ pFormCore->SetActionBarsVisible(FORM_ACTION_BAR_FOOTER, true);
+ }
- pFormCore->DeflateClientRectHeight(0);
+ pFormCore->DeflateClientRectHeight(0);
- if (pImpl->GetWebKeypadEventListener())
- {
- pImpl->GetWebKeypadEventListener()->OnWebKeypadClosed(*dynamic_cast< Web* >(&pImpl->GetPublic()));
- }
+ if (pImpl->GetWebKeypadEventListener())
+ {
+ pImpl->GetWebKeypadEventListener()->OnWebKeypadClosed(*dynamic_cast< Web* >(&pImpl->GetPublic()));
+ }
- pImpl->SetKeypadVisibleState(false);
+ pImpl->SetKeypadVisibleState(false);
+ }
}
{
if(IsKeypadVisible() == true)
{
+ OnWebKeypadClosed(this, null, null);
+
SetKeypadOpened(true);
}