Fix for 46412
[apps/osp/Call.git] / src / CallOptionPopup.cpp
index fc8110e..90bd482 100644 (file)
@@ -332,7 +332,12 @@ bool
 CallOptionPopup::OnKeyReleased(Control& source, const KeyEventInfo& keyEventInfo)
 {
        AppLogDebug("Enter");
-       Popup::SetShowState(false);
-       __popupListener.OnItemSelected(IDA_BUTTON_CANCEL_OPTIONS_POPUP);
-       return true;
+       if(keyEventInfo.GetKeyCode() == KEY_BACK || keyEventInfo.GetKeyCode() == KEY_ESC)
+       {
+               Popup::SetShowState(false);
+               __popupListener.OnItemSelected(IDA_BUTTON_CANCEL_OPTIONS_POPUP);
+               return true;
+
+       }
+       return false;
 }