widgets/widgetapp/src/WidgetUiWindowContainer.cpp
branchRCL_3
changeset 94 919f36ff910f
parent 93 79859ed3eea9
--- 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 <WidgetUi.rsg>
 
-#include <WidgetRegistryConstants.h>
+#include <widgetregistryconstants.h>
 
 #include <brctlinterface.h>
 #include <ApUtils.h>
-#include <InternetConnectionManager.h>
+#include <internetconnectionmanager.h>
 #include <ActiveApDb.h>
 #include <avkon.hrh>
-#include <AknsDrawUtils.h>
+#include <aknsdrawutils.h>
 #include <AknsBasicBackgroundControlContext.h>
 
  // CAknMessageQueryDialog
-#include <aknmessagequerydialog.h>
+#include <AknMessageQueryDialog.h>
 #include <aknnotewrappers.h>
-#include <aknnotedialog.h>
-#include <BrowserDialogsProvider.h>
+#include <AknNoteDialog.h>
+#include <browserdialogsprovider.h>
 
 // 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:
                 {