emailuis/emailui/src/ncssubjectfield.cpp
branchRCL_3
changeset 8 e1b6206813b4
parent 1 12c456ceeff2
child 10 f5907b1a1053
--- a/emailuis/emailui/src/ncssubjectfield.cpp	Tue Feb 02 00:02:40 2010 +0200
+++ b/emailuis/emailui/src/ncssubjectfield.cpp	Fri Feb 19 22:37:30 2010 +0200
@@ -89,9 +89,6 @@
 
     iTextEditor = new ( ELeave ) CNcsEditor( iSizeObserver, ETrue, ENcsEditorSubject, captionText );
     CleanupStack::PopAndDestroy( aTextBuf );
-
-    // iTextEditor is not completely constructed until in SetContainerWindowL()
-    iFocusChangeHandler = new (ELeave) CAsyncCallBack( CActive::EPriorityStandard );
     }
 
 // ---------------------------------------------------------------------------
@@ -109,8 +106,6 @@
         ControlEnv()->ScreenDevice()->ReleaseFont( iFont );
         iFont = NULL;
         }*/
-
-    delete iFocusChangeHandler;
     }
 
 // -----------------------------------------------------------------------------
@@ -245,6 +240,7 @@
     {
 	FUNC_LOG;
     iTextEditor->HandlePointerEventL( aPointerEvent );
+    iTextEditor->HandleTextChangedL();
     }
 
 // -----------------------------------------------------------------------------
@@ -254,21 +250,8 @@
 void CNcsSubjectField::FocusChanged( TDrawNow aDrawNow )
 	{
     FUNC_LOG;
-	// The focus change gaining handling needs to be deferred until AknFep is fully
-	// initialised. Otherwise there will be problems when moving focus from
-	// body to subject. Focus losing can be handled immediately
 	iDrawAfterFocusChange = aDrawNow;
-	if ( IsFocused() )
-	    {
-	TCallBack callback( DoHandleFocusChanged, this );
-	iFocusChangeHandler->Cancel();
-	iFocusChangeHandler->Set( callback );
-	iFocusChangeHandler->CallBack();
-	}
-	else
-	    {
-	    DoHandleFocusChanged( this );
-	    }
+	DoHandleFocusChanged( this );
 	}
 
 // -----------------------------------------------------------------------------