fep/aknfep/src/AknFepUiInputStateCandidateQwertyBaseChinesePhrase.cpp
branchRCL_3
changeset 50 5a1685599b76
parent 44 ecbabf52600f
child 56 8152b1f1763a
equal deleted inserted replaced
46:bd83ceabce89 50:5a1685599b76
    53         iOwner->FepMan()->TryCloseUiL();
    53         iOwner->FepMan()->TryCloseUiL();
    54         }
    54         }
    55 
    55 
    56     else if(!( HandleVerticalNavigation(aKey) || HandleHorizontalNavigation(aKey) ))
    56     else if(!( HandleVerticalNavigation(aKey) || HandleHorizontalNavigation(aKey) ))
    57         {
    57         {
    58         TInt index = 0;
       
    59 #ifdef RD_INTELLIGENT_TEXT_INPUT
    58 #ifdef RD_INTELLIGENT_TEXT_INPUT
    60         // it may be one of the 'valid' numbers..
    59         // it may be one of the 'valid' numbers..
    61         TPtiKeyboardType keyboardtype = iOwner->FepMan()->KeyboardLayout();
    60         TPtiKeyboardType keyboardtype = iOwner->FepMan()->KeyboardLayout();
    62         if ( EPtiKeyboardQwerty4x10 == keyboardtype ||
    61         if ( EPtiKeyboardQwerty4x10 == keyboardtype ||
    63              EPtiKeyboardQwerty3x11 == keyboardtype ||
    62              EPtiKeyboardQwerty3x11 == keyboardtype ||
    84                     TPtiNumericKeyBinding numKeyBind = keybinding[numericKeysCount];
    83                     TPtiNumericKeyBinding numKeyBind = keybinding[numericKeysCount];
    85                     if ( (numKeyBind.iChar >= 0x31 && numKeyBind.iChar <= ( 0x31 + candidateCount - 1 ))
    84                     if ( (numKeyBind.iChar >= 0x31 && numKeyBind.iChar <= ( 0x31 + candidateCount - 1 ))
    86                     
    85                     
    87                        &&(aKey == numKeyBind.iKey))
    86                        &&(aKey == numKeyBind.iKey))
    88                     	{
    87                     	{
    89                     	index = numKeyBind.iChar - EPtiKey0 -1;
       
    90                     	validnumkey = ETrue;
    88                     	validnumkey = ETrue;
    91                     	break;
    89                     	break;
    92                     	}
    90                     	}
    93                     }
    91                     }
    94                 }
    92                 }
    99             	iOwner->FepMan()->PlaySound(EAvkonSIDErrorTone);
    97             	iOwner->FepMan()->PlaySound(EAvkonSIDErrorTone);
   100                 return ETrue;
    98                 return ETrue;
   101             	}
    99             	}
   102                 
   100                 
   103             }
   101             }
   104         else
       
   105             {
       
   106 #endif
       
   107             index = MapKeyToIndex(aKey);
       
   108 #ifdef RD_INTELLIGENT_TEXT_INPUT
       
   109             }             
       
   110 #endif
   102 #endif
   111         MAknFepUICtrlCandidatePane* candidatePane = UIContainer()->CandidatePane();
   103         MAknFepUICtrlCandidatePane* candidatePane = UIContainer()->CandidatePane();
   112 
   104 
   113         if(candidatePane->SelectIndex(index) || aKey == EStdKeyDevice3 || aKey == EStdKeyEnter)
   105         if( aKey == EStdKeyDevice3 || aKey == EStdKeyEnter)
   114             {
   106             {
   115             TPtrC text = candidatePane->CurrentPhraseCandidate();
   107             TPtrC text = candidatePane->CurrentPhraseCandidate();
   116             if(text.Length())
   108             if(text.Length())
   117                 {            
   109                 {            
   118                 MAknFepManagerUIInterface* fepMan = iOwner->FepMan();
   110                 MAknFepManagerUIInterface* fepMan = iOwner->FepMan();