MainForm::MainForm(void)
{
- //__isLongPressedDone = false;
+ __isLongPressedDone = false;
__pHistory = null;
__pAddressbar = null;
// __pMostVisitedSitesPanel = null;
MultipleWindowPresentationModel::GetInstance()->GetValue(SELECTED_SCENE_ID, &pValue);
pSelectedScene = (String*) pValue;
- // removed because some times crash is happening here
- /*if (pSelectedScene != null)
+ if (pSelectedScene != null)
{
delete pSelectedScene;
- }*/
+ }
MultipleWindowPresentationModel::GetInstance()->SetValue(SELECTED_SCENE_ID, null);
String* selectedSceneID = new(std::nothrow) String(currentSceneId);
AppLogDebug("current scene id is %ls", currentSceneId.GetPointer());
__pWindowInfo = dynamic_cast< WindowInfo* >(pArgs->GetAt(0));
}
- if (selectedSceneID)
- {
- delete selectedSceneID;
- selectedSceneID = null;
- }
-
InitFooter();
InitAddressbar();
if(__pAddressbar)
{
__pAddressbar->SetShowState(true);
+ __pAddressbar->SetAddressbarURLFocus();
}
RelayoutControls(false);
}
void
MainForm::OnWebPageBlockSelected(Web& source, FloatPoint& startPoint, FloatPoint& endPoint)
{
+ if(__isLongPressedDone == false)
+ return;
AppLog("MainForm::OnWebPageBlockSelected");
if (__pHitElementResult != null)
{
- //__isLongPressedDone = true;
+ __isLongPressedDone = true;
result r =__pWebViewer->SetBlockSelectionPosition(currentPosition);
if (((tagName.CompareTo(L"INPUT") == 0) || tagName.CompareTo(L"TEXTAREA") == 0) && innerHtml.GetLength() == 0 /*&& __isWebKeypadOpened == true*/ && __currentSelectedStr.CompareTo(L"") == 0 && r == E_INVALID_ARG)
{
}
- if(__pOptionMenu != null)
- __pOptionMenu->SetShowState(false);
+// if(__pOptionMenu != null)
+// __pOptionMenu->SetShowState(false);
if( GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE || GetOrientationStatus() == ORIENTATION_STATUS_LANDSCAPE_REVERSE)
{
AppLog("MainForm::OnTouchPressed %d",__pFindWordControl->GetShowState());
// ShowFindWordPanel(__pFindWordControl->GetShowState(), true);
}
- //__isLongPressedDone = false;
+ __isLongPressedDone = false;
MainForm::OnTouchMoved(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo)
{
// __currentWordIndex = 0;
- //__isLongPressedDone = false;
+ __isLongPressedDone = false;
}