--- 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;