cmmanager/cmmgr/Framework/Src/cmpbasesettingsdlg.cpp
branchRCL_3
changeset 17 c14618f9de99
parent 1 40cb640ef159
child 24 c45d4fe2ff0a
--- a/cmmanager/cmmgr/Framework/Src/cmpbasesettingsdlg.cpp	Wed Mar 31 22:15:10 2010 +0300
+++ b/cmmanager/cmmgr/Framework/Src/cmpbasesettingsdlg.cpp	Wed Apr 14 16:22:04 2010 +0300
@@ -619,7 +619,21 @@
 EXPORT_C TKeyResponse CmPluginBaseSettingsDlg::OfferKeyEventL( const TKeyEvent& aKeyEvent, 
                                        TEventCode aType )    
     {
-    return iListbox->OfferKeyEventL( aKeyEvent, aType );       
+    TKeyResponse retVal ( EKeyWasNotConsumed );
+    switch( aKeyEvent.iCode )
+        {
+        // Add processing for case EKeyEscape to support status pane event in IAP-related editing 
+        // views (Dlg view, AdvDlg view and IPv4 and IPv6 views and so on)
+        case EKeyEscape:
+            TryExitL( iExitReason );
+            retVal = EKeyWasConsumed;
+            break;
+        default:
+            retVal = iListbox->OfferKeyEventL( aKeyEvent, aType ); 
+            break;
+        }
+        
+    return retVal;
     }
 
 //---------------------------------------------------------------------------