diff -r 79859ed3eea9 -r 919f36ff910f widgets/widgetapp/src/WidgetUiWindowContainer.cpp --- a/widgets/widgetapp/src/WidgetUiWindowContainer.cpp Tue Aug 31 16:17:46 2010 +0300 +++ b/widgets/widgetapp/src/WidgetUiWindowContainer.cpp Wed Sep 01 12:28:30 2010 +0100 @@ -23,21 +23,21 @@ #include -#include +#include #include #include -#include +#include #include #include -#include +#include #include // CAknMessageQueryDialog -#include +#include #include -#include -#include +#include +#include // EXTERNAL DATA STRUCTURES @@ -154,8 +154,6 @@ // void CWidgetUiWindowContainer::SizeChanged() { - TInt offset( 0 ); - if( Engine() && (Engine()->Rect() != Rect()) ) { TRect rect( Rect() ); @@ -280,10 +278,16 @@ if (aKeyEvent.iCode == EKeyNo) { // Close the current active widget - iWindowManager.CloseWindowsAsync(EFalse); + //iWindowManager.CloseWindowsAsync(EFalse); return EKeyWasConsumed; } + //Ignore application keys(EKeyApplication0-EKeyApplication1F) + if( (aKeyEvent.iCode>=EKeyApplication0 && aKeyEvent.iCode<= EKeyApplicationF) || + (aKeyEvent.iCode>=EKeyApplication10 && aKeyEvent.iCode<= EKeyApplication1F) ) + { + return EKeyWasNotConsumed; + } TKeyResponse resp(EKeyWasNotConsumed); TBool editing(EFalse); //Reset the iIsOptionsMenuActivated if enabled @@ -291,16 +295,12 @@ if (Engine()) { - TBool showStausPane(EFalse); TBrCtlDefs::TBrCtlElementType eType = Engine()->FocusedElementType(); switch(eType) { case TBrCtlDefs::EElementInputBox: case TBrCtlDefs::EElementActivatedInputBox: case TBrCtlDefs::EElementTextAreaBox: - // status pane is needed for editing - showStausPane = ETrue; - // fall through case TBrCtlDefs::EElementObjectBox: case TBrCtlDefs::EElementActivatedObjectBox: {