equal
deleted
inserted
replaced
288 void CNcsAddressInputField::PositionChanged() |
288 void CNcsAddressInputField::PositionChanged() |
289 { |
289 { |
290 FUNC_LOG; |
290 FUNC_LOG; |
291 |
291 |
292 // keep the button in view as long as possible |
292 // keep the button in view as long as possible |
293 if( iButton ) |
293 if( iButton && iParentControl->IsVisible() ) |
294 { |
294 { |
295 const TRect rect( Rect() ); |
295 const TRect rect( Rect() ); |
296 const TRect buttonRect( iButton->Rect() ); |
296 const TRect buttonRect( iButton->Rect() ); |
297 |
297 |
298 TInt newButtonPos( iOriginalButtonPos.iY - iOriginalFieldPos.iY ); |
298 TInt newButtonPos( iOriginalButtonPos.iY - iOriginalFieldPos.iY ); |
461 TRAP_IGNORE( iParentControl->SetMskL() ); |
461 TRAP_IGNORE( iParentControl->SetMskL() ); |
462 } |
462 } |
463 } |
463 } |
464 else |
464 else |
465 { |
465 { |
466 TRAP_IGNORE( iTextEditor->HandleTextChangedL() ); |
466 if ( iTextEditor->SelectionLength()== 0 ) |
|
467 { |
|
468 TRAP_IGNORE( iTextEditor->HandleTextChangedL() ); |
|
469 } |
|
470 |
467 iTextEditor->SetFocus( EFalse ); |
471 iTextEditor->SetFocus( EFalse ); |
468 TRAP_IGNORE( iAddressPopupList->ClosePopupContactListL() ); |
472 TRAP_IGNORE( iAddressPopupList->ClosePopupContactListL() ); |
469 } |
473 } |
470 |
474 |
471 if ( aDrawNow ) |
475 if ( aDrawNow ) |
860 |
864 |
861 void CNcsAddressInputField::EnableKineticScrollingL( CAknPhysics* aPhysics ) |
865 void CNcsAddressInputField::EnableKineticScrollingL( CAknPhysics* aPhysics ) |
862 { |
866 { |
863 iPhysics = aPhysics; |
867 iPhysics = aPhysics; |
864 iTextEditor->EnableKineticScrollingL( aPhysics ); |
868 iTextEditor->EnableKineticScrollingL( aPhysics ); |
865 } |
869 iTextEditor->TextLayout()->RestrictScrollToTopsOfLines( ETrue ); |
866 |
870 } |
867 void CNcsAddressInputField::SetCursorVisible( TBool aCursorVisible ) |
871 |
868 { |
872 void CNcsAddressInputField::SetPhysicsEmulationOngoing( TBool aPhysOngoing ) |
869 iTextEditor->SetCursorVisible( aCursorVisible ); |
873 { |
870 } |
874 iTextEditor->SetPhysicsEmulationOngoing( aPhysOngoing ); |
|
875 } |