calendarui/controller/src/calencmdlinelauncher.cpp
branchRCL_3
changeset 11 0f07cd1b5772
parent 5 42814f902fe6
child 13 1984aceb8774
--- a/calendarui/controller/src/calencmdlinelauncher.cpp	Fri Mar 12 15:42:35 2010 +0200
+++ b/calendarui/controller/src/calencmdlinelauncher.cpp	Mon Mar 15 12:40:18 2010 +0200
@@ -32,6 +32,7 @@
 #include "calencontroller.h"            // CCalenController
 #include "calencmdlineparser.h"         // CCalCmdLineParser
 #include "CalenUid.h"
+#include "calensend.h"
 
 // ================= MEMBER FUNCTIONS =======================
 
@@ -159,6 +160,14 @@
             key.iCode = EKeyEscape;
             key.iModifiers = 0;
             CCoeEnv::Static()->SimulateKeyEventL( key, EEventKey );
+            
+            // Break is added to close the messaging editor as the messagng editor is not 
+            // consuming the escape key event.
+            if( iGlobalData->CalenSendL().IsMessagingEditorOpen() )
+                {
+            break;
+                }
+                 
             }
 
         // Interpret 8bit data as 16bit unicode data