Fixed Nabi Issues
[apps/osp/Internet.git] / src / IntSharePopup.cpp
index fadbca5..68dcf0b 100644 (file)
@@ -148,6 +148,7 @@ SharePopup::Initialize(void)
 
        __pTimer = new(std::nothrow) Timer();
        __pTimer->Construct(*this);
+       SetPropagatedKeyEventListener(this);
        return true;
 }
 
@@ -528,3 +529,17 @@ void SharePopup::OnAppControlCompleteResponseReceived(const Tizen::App::AppId& a
        Popup::Show();
        __appControlOngoing = false;
 }
+
+bool
+SharePopup::OnKeyReleased (Control &source, const KeyEventInfo &keyEventInfo)
+{
+       AppLog("ConfirmationPopup::OnKeyReleased %d",keyEventInfo.GetKeyCode());
+       if(keyEventInfo.GetKeyCode() == KEY_BACK)
+       {
+               if(GetShowState() == true)
+               {
+                       SetShowState(false);
+               }
+       }
+       return false;
+}