//SetAddressbarMode(ADDRESSBAR_MODE_EDIT);
// SetAddressbarMode(__prevAddMode);
__pAddressbarUrlField->SetCursorPosition(__pAddressbarUrlField->GetTextLength());
+ if(__pAddressbarUrlField != null)
+ {
+ if(__pAddressbarUrlField->GetTextLength() == 0)
+ {
+ __pAddressbarUrlField->SetKeypadActionEnabled(false);
+ }
+ else
+ {
+ __pAddressbarUrlField->SetKeypadActionEnabled(true);
+ }
+ }
if (__pListener != null)
{
__pListener->OnAddressBarKeypadWillOpen(*this);
__pFooterLabel = null;
__pStopBtn = null;
__pClearBtn = null;
+ __isWebKeypadOpened = false;
}
MainForm::~MainForm(void)
String url = addBar.GetUrl();
AppLog("MainForm::OnUrlSubmitted url is %ls", url.GetPointer());
- __pFooterPanel->SetShowState(true);
+// __pFooterPanel->SetShowState(true);
+ OnAddressCancelledClicked(*__pAddressbar);
// __pAddressbar->SetShowState(false);
// RelayoutControls(false);
LoadUrl(url);
__pFindWordCountLabel->SetBounds(__pFindWordCountLabel->GetX(),__pFindWordCountLabel->GetY(),124,__pFindWordCountLabel->GetHeight());
__pFindWordEditField->SetBounds(__pFindWordEditField->GetX(),__pFindWordEditField->GetY(),174,__pFindWordEditField->GetHeight());
}
+ else
+ {
+ __pFindWordCountLabel->SetBounds(__pFindWordCountLabel->GetX(),__pFindWordCountLabel->GetY(),124,__pFindWordCountLabel->GetHeight());
+ __pFindWordEditField->SetBounds(__pFindWordEditField->GetX(),__pFindWordEditField->GetY(),174,__pFindWordEditField->GetHeight());
+ }
__maxOccurrances = totalCount;
__currentWordIndex = currentOrdinal;
MainForm::OnWebKeypadWillOpen(Tizen::Web::Controls::Web& source)
{
AppLog("MainForm::OnWebKeypadWillOpen");
+ __isWebKeypadOpened = true;
// OnAddressBarKeypadOpened(*__pAddressbar);
}
{
__pFooterPanel->SetShowState(true);
OnAddressBarKeypadClosed(*__pAddressbar);
+ __isWebKeypadOpened = false;
}
void
__currentSelectedStr.Clear();
__currentSelectedStr = __pWebViewer->GetTextFromBlock();
- if (((tagName.CompareTo(L"INPUT") == 0) || tagName.CompareTo(L"TEXTAREA") == 0) && value.GetLength() == 0 && innerHtml.GetLength() == 0)
+ if (((tagName.CompareTo(L"INPUT") == 0) || tagName.CompareTo(L"TEXTAREA") == 0) && value.GetLength() == 0 && innerHtml.GetLength() == 0 && __isWebKeypadOpened == true)
{
AppLog("MainForm::OnWebPageBlockSelected show paste option");
{
__currentSearchStr = L"aaaaaaaabbbbbbbccccccc";
StartWordSearch();
+ __currentSearchStr = L"";
AppLogDebug("Enter something");
}
}