fep/aknfep/src/AknFepUiInputStateEntryQwertyWesternPredictive.cpp
branchRCL_3
changeset 10 6defe5d1bd39
parent 0 eb1f2e154e89
child 19 5e18d8c489d6
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
   426 	                	|| (! rightToLeftLang && aKey == EStdKeyRightArrow ))
   426 	                	|| (! rightToLeftLang && aKey == EStdKeyRightArrow ))
   427 	                    {
   427 	                    {
   428 					    ptiengine->HandleCommandL( EPtiCommandLockCurrentCandidate);
   428 					    ptiengine->HandleCommandL( EPtiCommandLockCurrentCandidate);
   429 					    TPtrC selectedWord = ptiengine->CurrentWord();
   429 					    TPtrC selectedWord = ptiengine->CurrentWord();
   430                         fepMan->UpdateInlineEditL( selectedWord, selectedWord.Length() );  //selection.iAnchorPosition
   430                         fepMan->UpdateInlineEditL( selectedWord, selectedWord.Length() );  //selection.iAnchorPosition
   431                         // To fix the bug: STAA-7GYBJC Suggested word is not committed when Arrow right key is pressed.
   431                         // To fix the Suggested word is not committed when Arrow right key is pressed.
   432                         ptiengine->CommitCurrentWord();
   432                         ptiengine->CommitCurrentWord();
   433                         fepMan->TryCloseUiL();
   433                         fepMan->TryCloseUiL();
   434                         // Asyncronous case update after the editor has handled the key
   434                         // Asyncronous case update after the editor has handled the key
   435                 		fepMan->SimulateKeyEventL(EKeyF19); 
   435                 		fepMan->SimulateKeyEventL(EKeyF19); 
   436 	                    retVal = ETrue;
   436 	                    retVal = ETrue;
   617         						 textToUncommit.Length(), EFalse);
   617         						 textToUncommit.Length(), EFalse);
   618         }
   618         }
   619 
   619 
   620     if (aKey == EKeyBackspace)
   620     if (aKey == EKeyBackspace)
   621         {
   621         {
   622         TInt activeIdx = KErrNone;
       
   623         TPtrC newText = ptiengine->DeleteKeyPress();
   622         TPtrC newText = ptiengine->DeleteKeyPress();
   624         // To fix the Backspace Key issue in which focused word needs to be present in the editor.
       
   625         ptiengine->HandleCommandL( EPtiCommandUserActionSetCurrentIndexOfCandidates, &activeIdx );
       
   626         TPtrC selectedWord = ptiengine->CurrentWord();
   623         TPtrC selectedWord = ptiengine->CurrentWord();
   627         fepMan->UpdateInlineEditL(selectedWord, selectedWord.Length());
   624         fepMan->UpdateInlineEditL(selectedWord, selectedWord.Length());
   628 
   625 
   629 		fepMan->ClearFlag(CAknFepManager::EFlagRemoveMatchesMenuItem);           
   626 		fepMan->ClearFlag(CAknFepManager::EFlagRemoveMatchesMenuItem);           
   630         if (ptiengine->NumberOfCandidates() <= 1)
   627         if (ptiengine->NumberOfCandidates() <= 1)