diff -r 38571fd2a704 -r 0f07cd1b5772 calendarui/controller/src/calencmdlinelauncher.cpp --- 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