uifw/EikStd/dlgsrc/EIKDPAGE.CPP
branchRCL_3
changeset 9 aabf2c525e0f
parent 4 8ca85d2f0db7
child 16 71dd06cfe933
equal deleted inserted replaced
4:8ca85d2f0db7 9:aabf2c525e0f
  2102             == CAknPopupField::EAknPopupFieldSelectionListMode )
  2102             == CAknPopupField::EAknPopupFieldSelectionListMode )
  2103             {
  2103             {
  2104             TRAP_IGNORE( field->CloseSelectionListL() );
  2104             TRAP_IGNORE( field->CloseSelectionListL() );
  2105             }
  2105             }
  2106         }
  2106         }
       
  2107     // If new line is edwin, move cursor to the end of the string.
       
  2108     CEikCaptionedControl* theNewLine =  (*iLines)[aLineIndex];
       
  2109     if ( iExtension->iSetInitialFocusDone 
       
  2110     		&& IsForm()
       
  2111     		&& theNewLine->ControlIsAnEdwin( theNewLine->iControlType ) 
       
  2112     		&& theNewLine->iIsEditable )
       
  2113     	{
       
  2114         CEikEdwin* edwinPtr = STATIC_CAST( CEikEdwin*, theNewLine->iControl );
       
  2115         if( edwinPtr->Text() )
       
  2116         	{
       
  2117             edwinPtr->SetCursorPosL( edwinPtr->TextLength(), EFalse );       
       
  2118         	}
       
  2119     	}
  2107 
  2120 
  2108     ShowFocus( EFalse, EFalse );
  2121     ShowFocus( EFalse, EFalse );
  2109     iCurrentLine=aLineIndex;
  2122     iCurrentLine=aLineIndex;
  2110     ShowFocus(ETrue, EFalse );
  2123     ShowFocus(ETrue, EFalse );
  2111 
  2124