equal
deleted
inserted
replaced
65 : iState ( aState ), |
65 : iState ( aState ), |
66 iViewCommandHandle ( aViewCommandHandle ), |
66 iViewCommandHandle ( aViewCommandHandle ), |
67 iStateMachine ( aStateMachine ), |
67 iStateMachine ( aStateMachine ), |
68 iCustomization ( aCustomization ), |
68 iCustomization ( aCustomization ), |
69 iCbaManager ( aCbaManager ), |
69 iCbaManager ( aCbaManager ), |
70 iEnv( *CEikonEnv::Static() ) |
70 iEnv( *CEikonEnv::Static() ) // codescanner::eikonenvstatic |
71 { |
71 { |
72 __LOGMETHODSTARTEND( EPhoneControl, "CPhoneNumberEntryManager::CPhoneNumberEntryManager() "); |
72 __LOGMETHODSTARTEND( EPhoneControl, "CPhoneNumberEntryManager::CPhoneNumberEntryManager() "); |
73 } |
73 } |
74 |
74 |
75 // --------------------------------------------------------------------------- |
75 // --------------------------------------------------------------------------- |
476 // |
476 // |
477 TBool CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput( |
477 TBool CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput( |
478 const TKeyEvent& aKeyEvent ) const |
478 const TKeyEvent& aKeyEvent ) const |
479 { |
479 { |
480 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput( ) "); |
480 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput( ) "); |
481 TBool ret = ( iViewCommandHandle.HandleCommandL( EPhoneViewIsNumberEntryNumericMode ) |
481 |
482 != EPhoneViewResponseSuccess ) |
482 TBool numericMode = EFalse; |
483 && |
483 TRAP_IGNORE( numericMode = ( iViewCommandHandle.HandleCommandL( EPhoneViewIsNumberEntryNumericMode ) |
|
484 == EPhoneViewResponseSuccess ) ); |
|
485 |
|
486 TBool ret = !numericMode && |
484 ( ( aKeyEvent.iScanCode >= KPhoneKeyStart && |
487 ( ( aKeyEvent.iScanCode >= KPhoneKeyStart && |
485 aKeyEvent.iScanCode <= KPhoneKeyEnd ) || |
488 aKeyEvent.iScanCode <= KPhoneKeyEnd ) || |
486 aKeyEvent.iModifiers & EModifierSpecial ); |
489 aKeyEvent.iModifiers & EModifierSpecial ); |
487 __PHONELOG1( EBasic, EPhoneControl, |
490 __PHONELOG1( EBasic, EPhoneControl, |
488 "CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput: %d", ret ); |
491 "CPhoneNumberEntryManager::IsAlphanumericSupportedAndCharInput: %d", ret ); |