uifw/EikStd/dlgsrc/EIKDPAGE.CPP
branchRCL_3
changeset 5 aabf2c525e0f
parent 3 8ca85d2f0db7
child 8 71dd06cfe933
--- a/uifw/EikStd/dlgsrc/EIKDPAGE.CPP	Fri Feb 19 23:04:46 2010 +0200
+++ b/uifw/EikStd/dlgsrc/EIKDPAGE.CPP	Fri Mar 12 15:43:43 2010 +0200
@@ -2104,6 +2104,19 @@
             TRAP_IGNORE( field->CloseSelectionListL() );
             }
         }
+    // If new line is edwin, move cursor to the end of the string.
+    CEikCaptionedControl* theNewLine =  (*iLines)[aLineIndex];
+    if ( iExtension->iSetInitialFocusDone 
+    		&& IsForm()
+    		&& theNewLine->ControlIsAnEdwin( theNewLine->iControlType ) 
+    		&& theNewLine->iIsEditable )
+    	{
+        CEikEdwin* edwinPtr = STATIC_CAST( CEikEdwin*, theNewLine->iControl );
+        if( edwinPtr->Text() )
+        	{
+            edwinPtr->SetCursorPosL( edwinPtr->TextLength(), EFalse );       
+        	}
+    	}
 
     ShowFocus( EFalse, EFalse );
     iCurrentLine=aLineIndex;