fep/aknfep/src/AknFepUiInputStateCandidateQwertyBaseChinesePhrase.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 50 5a1685599b76
--- a/fep/aknfep/src/AknFepUiInputStateCandidateQwertyBaseChinesePhrase.cpp	Wed Sep 15 12:34:44 2010 +0300
+++ b/fep/aknfep/src/AknFepUiInputStateCandidateQwertyBaseChinesePhrase.cpp	Wed Oct 13 14:55:58 2010 +0300
@@ -55,6 +55,7 @@
 
     else if(!( HandleVerticalNavigation(aKey) || HandleHorizontalNavigation(aKey) ))
         {
+        TInt index = 0;
 #ifdef RD_INTELLIGENT_TEXT_INPUT
         // it may be one of the 'valid' numbers..
         TPtiKeyboardType keyboardtype = iOwner->FepMan()->KeyboardLayout();
@@ -85,6 +86,7 @@
                     
                        &&(aKey == numKeyBind.iKey))
                     	{
+                    	index = numKeyBind.iChar - EPtiKey0 -1;
                     	validnumkey = ETrue;
                     	break;
                     	}
@@ -99,10 +101,16 @@
             	}
                 
             }
+        else
+            {
+#endif
+            index = MapKeyToIndex(aKey);
+#ifdef RD_INTELLIGENT_TEXT_INPUT
+            }             
 #endif
         MAknFepUICtrlCandidatePane* candidatePane = UIContainer()->CandidatePane();
 
-        if( aKey == EStdKeyDevice3 || aKey == EStdKeyEnter)
+        if(candidatePane->SelectIndex(index) || aKey == EStdKeyDevice3 || aKey == EStdKeyEnter)
             {
             TPtrC text = candidatePane->CurrentPhraseCandidate();
             if(text.Length())