fep/aknfep/src/AknFepUiInputStateCandidateQwertyBaseChinesePhrase.cpp
branchRCL_3
changeset 7 6defe5d1bd39
parent 0 eb1f2e154e89
equal deleted inserted replaced
6:6ceef9a83b1a 7:6defe5d1bd39
    66             {      
    66             {      
    67             MPtiLanguage *lang = NULL;
    67             MPtiLanguage *lang = NULL;
    68             RArray < TPtiNumericKeyBinding > keybinding;
    68             RArray < TPtiNumericKeyBinding > keybinding;
    69             TBool validnumkey = EFalse;
    69             TBool validnumkey = EFalse;
    70             CPtiEngine* ptiengine = iOwner->PtiEngine();
    70             CPtiEngine* ptiengine = iOwner->PtiEngine();
    71             lang = ptiengine->CurrentLanguage();
    71             
       
    72             if( ptiengine != NULL )
       
    73                 {
       
    74                 lang = ptiengine->CurrentLanguage();
       
    75                 }
    72             if( ptiengine && lang )
    76             if( ptiengine && lang )
    73                 {
    77                 {
    74                 TRAP_IGNORE(ptiengine->GetNumericModeKeysForQwertyL(lang->LanguageCode(), 
    78                 TRAP_IGNORE(ptiengine->GetNumericModeKeysForQwertyL(lang->LanguageCode(), 
    75                                                                     keybinding, keyboardtype));
    79                                                                     keybinding, keyboardtype));
    76                 TInt numericKeysCount = keybinding.Count();
    80                 TInt numericKeysCount = keybinding.Count();
   325     if (EPtiKeyboardQwerty4x10 == keyboardtype || EPtiKeyboardQwerty3x11
   329     if (EPtiKeyboardQwerty4x10 == keyboardtype || EPtiKeyboardQwerty3x11
   326             == keyboardtype || EPtiKeyboardHalfQwerty == keyboardtype
   330             == keyboardtype || EPtiKeyboardHalfQwerty == keyboardtype
   327             || EPtiKeyboardCustomQwerty == keyboardtype)
   331             || EPtiKeyboardCustomQwerty == keyboardtype)
   328         {
   332         {
   329         RArray <TPtiNumericKeyBinding> keybinding;
   333         RArray <TPtiNumericKeyBinding> keybinding;
   330         lang = ptiengine->CurrentLanguage();
   334         
       
   335         if( ptiengine != NULL )
       
   336             {
       
   337             lang = ptiengine->CurrentLanguage();
       
   338             }
   331         if ( ptiengine && lang )
   339         if ( ptiengine && lang )
   332             {
   340             {
   333             TRAP_IGNORE(ptiengine->GetNumericModeKeysForQwertyL(lang->LanguageCode(), keybinding, keyboardtype));
   341             TRAP_IGNORE(ptiengine->GetNumericModeKeysForQwertyL(lang->LanguageCode(), keybinding, keyboardtype));
   334             TInt numericKeysCount = keybinding.Count();
   342             TInt numericKeysCount = keybinding.Count();
   335             while ( numericKeysCount-- )
   343             while ( numericKeysCount-- )