fep/aknfep/src/AknFepUiManagerChinese.cpp
branchRCL_3
changeset 10 6defe5d1bd39
parent 0 eb1f2e154e89
child 19 5e18d8c489d6
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
   482 // ---------------------------------------------------------------------------
   482 // ---------------------------------------------------------------------------
   483 //
   483 //
   484 TBool CAknFepUIManagerChinese::IsValidChineseInputKeyQwerty(TInt aKey) const
   484 TBool CAknFepUIManagerChinese::IsValidChineseInputKeyQwerty(TInt aKey) const
   485     {
   485     {
   486     TBool response = EFalse;
   486     TBool response = EFalse;
   487 #ifdef RD_INTELLIGENT_TEXT_INPUT        
   487 #ifdef RD_INTELLIGENT_TEXT_INPUT     
   488     TPtiKeyboardType keyboardType = iPtiEngine->KeyboardType();
   488     
       
   489     TPtiKeyboardType keyboardType = EPtiKeyboardNone;
       
   490     if( iPtiEngine != NULL )        
       
   491         {
       
   492         keyboardType = iPtiEngine->KeyboardType();
       
   493         }
   489 #endif
   494 #endif
   490 
   495 
   491     if(iMode == EPinyin)
   496     if(iMode == EPinyin)
   492         {
   497         {
   493         if( (aKey >= EPtiKeyQwertyA && aKey <= EPtiKeyQwertyZ) ||
   498         if( (aKey >= EPtiKeyQwertyA && aKey <= EPtiKeyQwertyZ) ||
   652         }
   657         }
   653 #ifdef RD_INTELLIGENT_TEXT_INPUT        
   658 #ifdef RD_INTELLIGENT_TEXT_INPUT        
   654         }
   659         }
   655 #endif        
   660 #endif        
   656 #ifdef RD_INTELLIGENT_TEXT_INPUT        
   661 #ifdef RD_INTELLIGENT_TEXT_INPUT        
   657     if(EPtiKeyboardQwerty4x12 == iPtiEngine->KeyboardType())
   662     
       
   663     if( iPtiEngine != NULL && EPtiKeyboardQwerty4x12 == iPtiEngine->KeyboardType())
   658         {
   664         {
   659 #endif
   665 #endif
   660     if(iMode == EZhuyin && IsFlagSet(ESupportZhuyinPhrase) && aKey == EPtiKeyQwertyApostrophe)
   666     if(iMode == EZhuyin && IsFlagSet(ESupportZhuyinPhrase) && aKey == EPtiKeyQwertyApostrophe)
   661         {
   667         {
   662         response = ETrue;
   668         response = ETrue;