Fixed Nabi Issues
[apps/osp/Internet.git] / src / IntAddressbar.cpp
index b80c451..9cd26cf 100644 (file)
@@ -56,7 +56,6 @@ Addressbar::Addressbar(void)
        __progressPercentage = 0;
        __pAddressbarBg = null;
        __pBgPanel = null;
-       __pClearBtn = null;
        __pFavIcon = FaviconManager::GetInstance()->GetDefaultFaviconN();
        __pFaviconLabel = null;
        __pLabelPrivateOn = null;
@@ -140,6 +139,7 @@ Addressbar::Initialize(const Rectangle& rect)
        __pClearBtn->SetActionId(IDA_CLEAR_URL);
        __pClearBtn->AddActionEventListener(*this);
        __pClearBtn->SetShowState(true);
+       __pClearBtn->SetFocusable(true);
 
        //Add the editfield for url
        __pAddressbarUrlField =  static_cast<EditField*> (GetControl(L"IDC_URL_EDITFIELD",true));
@@ -661,6 +661,8 @@ void
 Addressbar::OnFocusLost(const Tizen::Ui::Control& source)
 {
        AppLog("XYZ::Addressbar::OnFocusLost");
+       if(GetShowState() == true)
+               __isAppBackGround = true;
 
 //     __editTextUrl = L"";
        if(__pListener != null)
@@ -697,7 +699,9 @@ Addressbar::OnDeviceStateChanged(DeviceType deviceType, const String &state)
 void
 Addressbar::SetAddressbarURLFocus()
 {
-       __pAddressbarUrlField->SetFocus();
+       AppLog("Addressbar::SetAddressbarURLFocus");
+       result r = __pAddressbarUrlField->SetFocus();
+       AppLog("Addressbar::SetAddressbarURLFocus result %s",GetErrorMessage(r));
 }
 
 String