widgets/widgetapp/src/WidgetUiObserver.cpp
changeset 8 7c90e6132015
parent 0 dd21522fd290
child 13 10e98eab6f85
--- a/widgets/widgetapp/src/WidgetUiObserver.cpp	Mon Mar 30 12:54:55 2009 +0300
+++ b/widgets/widgetapp/src/WidgetUiObserver.cpp	Fri May 08 08:25:06 2009 +0300
@@ -183,6 +183,19 @@
             iWindow->SetSoftKeyLabelL( aKeySoftkey, aLabel );
             }
         }
+    
+    if (iWindow->WindowManager().ActiveWindow() && 
+            iWindow->WindowManager().View()->CbaGroup()->IsVisible())
+        {
+        TBrCtlDefs::TBrCtlElementType elementtype =
+                      iWindow->WindowManager().ActiveWindow()->Engine()->FocusedElementType();
+        // Check if focused element type is editing type
+        if ((elementtype != TBrCtlDefs::EElementActivatedInputBox) &&
+                       (elementtype != TBrCtlDefs::EElementActivatedObjectBox))
+            {
+            iWindow->WindowManager().View()->ShowActivatedObject( EFalse );
+            }        
+        }
     }
 
 // -----------------------------------------------------------------------------
@@ -231,6 +244,7 @@
         iWindow->WindowManager().WidgetUIClientSession().GetLprojName( lprojName );
         TranslateURLToFilenameL( aEmbeddedUrl, lprojName ); 
         
+		iFs.PrivatePath(iAppPrivatePath);        
         // TRUE if e:/private/10282822/*/* was requested. It may or may not be inside a widget's sandbox.
         TBool isInsidePrivateDir = ( iFileName && ( (*iFileName).FindF(iAppPrivatePath) == KMaxDriveName ) ) ? ETrue : EFalse; 
 
@@ -341,6 +355,7 @@
     iHandler = CDocumentHandler::NewL( CEikonEnv::Static()->Process() ) ;
         // Get WidgetUI's private directory (e.g. c:/private/10282822/)
     iCollectBitmapTimer = CIdle::NewL(CActive::EPriorityLow);
+    iFs.Connect();
     }
 
 // -----------------------------------------------------------------------------
@@ -362,6 +377,7 @@
     delete iSoftkeyExitStr;
     delete iLeftSoftkeyStr;
     delete iCollectBitmapTimer; 
+    iFs.Close(); 
     }
 
 // -----------------------------------------------------------------------------