fep/aknfep/src/AknFepUiManagerBase.cpp
branchRCL_3
changeset 18 b1ea1642412e
parent 12 5e18d8c489d6
equal deleted inserted replaced
16:857bebeecec0 18:b1ea1642412e
   967         if ( iFepMan->IsFlagSet(CAknFepManager::EFlagInsideInlineEditingTransaction) )
   967         if ( iFepMan->IsFlagSet(CAknFepManager::EFlagInsideInlineEditingTransaction) )
   968             {
   968             {
   969             TPtrC curWord = iPtiEngine->CurrentWord();
   969             TPtrC curWord = iPtiEngine->CurrentWord();
   970             iFepMan->UpdateInlineEditL( curWord, curWord.Length() );
   970             iFepMan->UpdateInlineEditL( curWord, curWord.Length() );
   971             }
   971             }
   972 		if ( iFepMan->IsSupportsSecretText() )
   972         //a temporary solution to fix the error: long key press will input q1 instead of 1.
       
   973         //if the secret editor is a java secret editor, then do not simulate the key EF20 like avkon secret editor
       
   974         //&& !( iFepMan->IsJavaSecretEditor() ) was added    
       
   975 		if ( ( iFepMan->IsSupportsSecretText() ) && !( iFepMan->IsJavaSecretEditor() ) )
   973         	{
   976         	{
   974             // Fep communicates with secret text editors using simulated events.
   977             // Fep communicates with secret text editors using simulated events.
   975             iFepMan->SimulateKeyEventL(EKeyF20);
   978             iFepMan->SimulateKeyEventL(EKeyF20);
   976             iFepMan->ClearFlag( CAknFepManager::EFlagInsideMultitapInlineEditingTransaction);
   979             iFepMan->ClearFlag( CAknFepManager::EFlagInsideMultitapInlineEditingTransaction);
   977             }    
   980             }    
   980     else if ( iEditorTextLenDeltaWithLastKey > 0 )
   983     else if ( iEditorTextLenDeltaWithLastKey > 0 )
   981         {
   984         {
   982         // The previous key entered character(s) directly to the editor
   985         // The previous key entered character(s) directly to the editor
   983         for ( TInt i=0 ; i<iEditorTextLenDeltaWithLastKey ; ++i )
   986         for ( TInt i=0 ; i<iEditorTextLenDeltaWithLastKey ; ++i )
   984             {
   987             {
   985             if ( iFepMan->IsSupportsSecretText() )
   988             //a temporary solution to fix the error: long key press will input q1 instead of 1.
       
   989             //if the secret editor is a java secret editor, then do not simulate the key EF20 like avkon secret editor
       
   990             //&& !( iFepMan->IsJavaSecretEditor() ) was added
       
   991             if ( ( iFepMan->IsSupportsSecretText() ) && !( iFepMan->IsJavaSecretEditor() ) )
   986                 {
   992                 {
   987                 // Fep communicates with secret text editors using simulated events.
   993                 // Fep communicates with secret text editors using simulated events.
   988                 iFepMan->SimulateKeyEventL(EKeyF20);
   994                 iFepMan->SimulateKeyEventL(EKeyF20);
   989                 iFepMan->ClearFlag(CAknFepManager::EFlagInsideMultitapInlineEditingTransaction);
   995                 iFepMan->ClearFlag(CAknFepManager::EFlagInsideMultitapInlineEditingTransaction);
   990                 }
   996                 }