phonebookui/Speeddial/src/SpdiaContainer.cpp
branchRCL_3
changeset 13 a6539d1e8e43
parent 11 2828b4d142c0
equal deleted inserted replaced
12:4ae315f230bc 13:a6539d1e8e43
   258         // Refresh when grid is in foreground 
   258         // Refresh when grid is in foreground 
   259         if ( iSpeedPrivate->State() == CSpeedDialPrivate::STATE_IDLE && 
   259         if ( iSpeedPrivate->State() == CSpeedDialPrivate::STATE_IDLE && 
   260              iSpeedPrivate->GridStatus() == CSpeedDialPrivate::EGridUse )
   260              iSpeedPrivate->GridStatus() == CSpeedDialPrivate::EGridUse )
   261             {
   261             {
   262             // if refresh grid here, termination will be interrupt when edit type is full screen QWERTY.
   262             // if refresh grid here, termination will be interrupt when edit type is full screen QWERTY.
   263             RefreshGrid();
   263             // RefreshGrid();
   264             iGrid->HandleResourceChange( aType );
   264             iGrid->HandleResourceChange( aType );
   265 
   265 
   266             // Reload menubar when swap between landscape and portrait mode.
   266             // Reload menubar when swap between landscape and portrait mode.
   267             iView->LoadCba( MenuResourceID() );
   267             iView->LoadCba( MenuResourceID() );
   268             DrawDeferred();
   268             DrawDeferred();
   488         }
   488         }
   489     // Check whether the focus exists.
   489     // Check whether the focus exists.
   490     // If not, updated the option menu
   490     // If not, updated the option menu
   491     else if ( !iView->IsFocused() )
   491     else if ( !iView->IsFocused() )
   492     	{
   492     	{
   493     	// LOGTEXT( _L("CR addition: handle HW key shortcuts event in OfferKeyEventL()") );
       
   494     	iGrid->SetCurrentDataIndex( 0 );
       
   495         iView->LoadCba( MenuResourceID() );
   493         iView->LoadCba( MenuResourceID() );
   496         MiddleSoftKeyL();
   494         MiddleSoftKeyL();
   497     	}
   495     	}
   498 
   496 
   499     TKeyResponse exitCode( EKeyWasNotConsumed );
   497     TKeyResponse exitCode( EKeyWasNotConsumed );
  1062     if ( !AknLayoutUtils::PenEnabled() )
  1060     if ( !AknLayoutUtils::PenEnabled() )
  1063         {
  1061         {
  1064         return;
  1062         return;
  1065         }
  1063         }
  1066   
  1064   
       
  1065     //reset iLongTapUsed 
       
  1066     if ( aPointerEvent.iType == TPointerEvent::EButton1Down )
       
  1067         {
       
  1068         iLongTapUsed = EFalse;
       
  1069         }
       
  1070     
  1067     if ( ( aPointerEvent.iType == TPointerEvent::EButton1Down ) ||
  1071     if ( ( aPointerEvent.iType == TPointerEvent::EButton1Down ) ||
  1068              ( aPointerEvent.iType == TPointerEvent::EButton1Up ) )
  1072              ( aPointerEvent.iType == TPointerEvent::EButton1Up ) )
  1069     	{
  1073     	{
  1070         if ( iLongTapDetector )
  1074         if ( iLongTapDetector )
  1071             {
  1075             {