emailuis/emailui/src/FreestyleEmailUiShortcutBinding.cpp
branchRCL_3
changeset 61 dcf0eedfc1a3
parent 16 4ce476e64c59
equal deleted inserted replaced
60:d620048b4810 61:dcf0eedfc1a3
   251             caseMode = EPtiCaseFnLower;
   251             caseMode = EPtiCaseFnLower;
   252             }
   252             }
   253 #endif // RD_INTELLIGENT_TEXT_INPUT
   253 #endif // RD_INTELLIGENT_TEXT_INPUT
   254         if ( iQwertyMappings )
   254         if ( iQwertyMappings )
   255             {
   255             {
       
   256             iQwertyMappings->SetKeyboardType( static_cast<TPtiKeyboardType>( kbType ) );
   256             iQwertyMappings->GetDataForKey( static_cast<TPtiKey>(aKey.iScanCode), 
   257             iQwertyMappings->GetDataForKey( static_cast<TPtiKey>(aKey.iScanCode), 
   257                     keyData, caseMode );
   258                     keyData, caseMode );
   258             }
   259             }
   259         }
   260         }
   260     else if ( kbType == EHalfQwerty )
   261     else if ( kbType == EHalfQwerty )
   261         {
   262         {
   262         // Half-QWERTY mode
   263         // Half-QWERTY mode
   263         // Map the key to the corresponding character in the Fn mode
   264         // Map the key to the corresponding character in the Fn mode
   264         if ( iHalfQwertyMappings )
   265         if ( iHalfQwertyMappings )
   265             {
   266             {
   266 #ifdef RD_INTELLIGENT_TEXT_INPUT        
   267 #ifdef RD_INTELLIGENT_TEXT_INPUT 
       
   268             iQwertyMappings->SetKeyboardType( static_cast<TPtiKeyboardType>( kbType ) );
   267             iHalfQwertyMappings->GetDataForKey( static_cast<TPtiKey>(aKey.iScanCode), 
   269             iHalfQwertyMappings->GetDataForKey( static_cast<TPtiKey>(aKey.iScanCode), 
   268                     keyData, EPtiCaseFnLower );
   270                     keyData, EPtiCaseFnLower );
   269 #endif // RD_INTELLIGENT_TEXT_INPUT
   271 #endif // RD_INTELLIGENT_TEXT_INPUT
   270             }
   272             }
   271         }
   273         }
   418     // English should be available in all device variants as an optional input language.
   420     // English should be available in all device variants as an optional input language.
   419     CPtiCoreLanguage* lang = 
   421     CPtiCoreLanguage* lang = 
   420         static_cast<CPtiCoreLanguage*>( iPtiEngine->GetLanguage( ELangEnglish ) );
   422         static_cast<CPtiCoreLanguage*>( iPtiEngine->GetLanguage( ELangEnglish ) );
   421     if (lang)
   423     if (lang)
   422         {
   424         {
   423         iQwertyMappings = static_cast<CPtiKeyMappings*>( lang->GetQwertyKeymappings() );
   425         iQwertyMappings = static_cast<CPtiQwertyKeyMappings*>( lang->GetQwertyKeymappings() );
   424 #ifdef RD_INTELLIGENT_TEXT_INPUT        
   426 #ifdef RD_INTELLIGENT_TEXT_INPUT        
   425         iHalfQwertyMappings = static_cast<CPtiKeyMappings*>( lang->GetHalfQwertyKeymappings() );
   427         iHalfQwertyMappings = static_cast<CPtiHalfQwertyKeyMappings*>( lang->GetHalfQwertyKeymappings() );
   426 #endif // RD_INTELLIGENT_TEXT_INPUT        
   428 #endif // RD_INTELLIGENT_TEXT_INPUT        
   427         }
   429         }
   428     lang = NULL; // owned by iPtiEngine
   430     lang = NULL; // owned by iPtiEngine
   429     
   431     
   430     
   432