phoneapp/phoneuicontrol/src/cphonenumberentrymanager.cpp
changeset 72 c76a0b1755b9
parent 56 5bcb308bd24d
child 74 d1c62c765e48
equal deleted inserted replaced
64:6aaf0276100e 72:c76a0b1755b9
   229         const TKeyEvent& aKeyEvent,
   229         const TKeyEvent& aKeyEvent,
   230         TEventCode aEventCode )
   230         TEventCode aEventCode )
   231     {
   231     {
   232     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneNumberEntryManager::IsValidAlphaNumericKey( ) ");
   232     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneNumberEntryManager::IsValidAlphaNumericKey( ) ");
   233     TBool ret(EFalse);
   233     TBool ret(EFalse);
   234     const TBool numericKeyEntered( CPhoneKeys::IsNumericKey(
   234     const TBool numericKeyEntered( 
   235           aKeyEvent, aEventCode ) );
   235             CPhoneKeys::IsNumericKey( aKeyEvent, aEventCode ) );
   236 
       
   237     // a numeric key (1,2,3,4,6,7,8,9,0,+,*,p,w )
   236     // a numeric key (1,2,3,4,6,7,8,9,0,+,*,p,w )
   238     // or
   237     // or
   239     // a letter from fullscreen qwerty, miniqwerty or handwriting
   238     // a letter from fullscreen qwerty, miniqwerty or handwriting
   240     // when voip is enabled.
   239     // when voip is enabled.
   241     if ( numericKeyEntered
   240     if ( numericKeyEntered
   242         || IsAlphanumericSupportedAndCharInput( aKeyEvent ) )
   241         || IsAlphanumericSupportedAndCharInput( aKeyEvent ) )
   243         {
   242         {
   244         ret= ETrue;
   243         ret= ETrue;
   245         }
   244         }
   246 
       
   247     return ret;
   245     return ret;
   248     }
   246     }
   249 
   247 
   250 // -----------------------------------------------------------------------------
   248 // -----------------------------------------------------------------------------
   251 // CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput
   249 // CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput
   282     {
   280     {
   283     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneNumberEntryManager::NumberEntryClearL( ) ");
   281     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneNumberEntryManager::NumberEntryClearL( ) ");
   284     iViewCommandHandle.ExecuteCommandL( EPhoneViewClearNumberEntryContent );
   282     iViewCommandHandle.ExecuteCommandL( EPhoneViewClearNumberEntryContent );
   285     }
   283     }
   286 
   284 
   287 
       
   288 
       
   289