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 |