phoneuis/dialer/src/cdialernumberentry.cpp
branchRCL_3
changeset 26 8baf28733c3d
parent 25 5266b1f337bd
equal deleted inserted replaced
25:5266b1f337bd 26:8baf28733c3d
   171     {
   171     {
   172     DIALER_PRINT("numberentry::SetFocus<");  
   172     DIALER_PRINT("numberentry::SetFocus<");  
   173     
   173     
   174     TBool vkbOpen = ( iEditor->AknEditorFlags() & EAknEditorFlagTouchInputModeOpened );
   174     TBool vkbOpen = ( iEditor->AknEditorFlags() & EAknEditorFlagTouchInputModeOpened );
   175     
   175     
   176     iLateFocuser->Cancel(); 
   176     iLateFocuser->Cancel();
   177     if ( aFocus && !vkbOpen )
   177 
       
   178     if ( aFocus && !vkbOpen && iLateFocuserCanBeUsed )
   178         {
   179         {
   179         // The setting of focus needs to be delayed, because otherwise
   180         // The setting of focus needs to be delayed, because otherwise
   180         // editors cursor is drawn first. Cursor can be seen clearly
   181         // editors cursor is drawn first. Cursor can be seen clearly
   181         // when going from landscape mode homescreen to dialer (when
   182         // when going from landscape mode homescreen to dialer (when
   182         // dialer's support for landscape mode has been removed)
   183         // dialer's support for landscape mode has been removed)
   189         }
   190         }
   190     else 
   191     else 
   191         {       
   192         {       
   192         DoSetFocus( aFocus, aDrawNow );
   193         DoSetFocus( aFocus, aDrawNow );
   193         }
   194         }
       
   195 
   194     DIALER_PRINT("numberentry::SetFocus>");
   196     DIALER_PRINT("numberentry::SetFocus>");
   195     }
   197     }
   196     
   198     
   197 // ---------------------------------------------------------------------------
   199 // ---------------------------------------------------------------------------
   198 // CDialerNumberEntry::SetLateFocus 
   200 // CDialerNumberEntry::SetLateFocus 
   225         }
   227         }
   226     
   228     
   227     if ( aFocus != (iEditor-> IsFocused() ? ETrue : EFalse ) )
   229     if ( aFocus != (iEditor-> IsFocused() ? ETrue : EFalse ) )
   228         {
   230         {
   229         iEditor->SetFocus( aFocus );
   231         iEditor->SetFocus( aFocus );
   230         }   
   232         }
       
   233 
       
   234     // Don't allow usage of late focuser until next layout change or Dialer launch
       
   235     iLateFocuserCanBeUsed = EFalse;
       
   236 
   231     DIALER_PRINT("numberentry::DoSetFocus>");  
   237     DIALER_PRINT("numberentry::DoSetFocus>");  
   232     }
   238     }
   233 
   239 
   234 // ---------------------------------------------------------------------------
   240 // ---------------------------------------------------------------------------
   235 // CDialerNumberEntry::TextLength 
   241 // CDialerNumberEntry::TextLength 
   573     labelLayout.Setl( neLayout.l() );
   579     labelLayout.Setl( neLayout.l() );
   574     AknLayoutUtils::LayoutLabel( iLabel, parentRect, labelLayout );
   580     AknLayoutUtils::LayoutLabel( iLabel, parentRect, labelLayout );
   575     
   581     
   576     HandleEditorFormatting();
   582     HandleEditorFormatting();
   577     iEditor->DrawDeferred();
   583     iEditor->DrawDeferred();
       
   584     
       
   585     // Allow usage of late focuser
       
   586     iLateFocuserCanBeUsed = ETrue;
   578     }
   587     }
   579 
   588 
   580 // ---------------------------------------------------------------------------
   589 // ---------------------------------------------------------------------------
   581 // CDialerNumberEntry::ConstructEditorFromResourceL 
   590 // CDialerNumberEntry::ConstructEditorFromResourceL 
   582 // ---------------------------------------------------------------------------
   591 // ---------------------------------------------------------------------------