textinput/peninputvkbcn/src/peninputvkbuistatecompositionwithchars.cpp
branchRCL_3
changeset 12 5e18d8c489d6
parent 0 eb1f2e154e89
equal deleted inserted replaced
11:c8fb4cf7b3ae 12:5e18d8c489d6
   122 // CAknFepVkbUiStateCompositionWithChars::HandleBackEvent
   122 // CAknFepVkbUiStateCompositionWithChars::HandleBackEvent
   123 // (other items were commented in a header).
   123 // (other items were commented in a header).
   124 // -----------------------------------------------------------------------------
   124 // -----------------------------------------------------------------------------
   125 //
   125 //
   126 TBool CAknFepVkbUiStateCompositionWithChars::HandleBackEvent(TInt /*aEventType*/,
   126 TBool CAknFepVkbUiStateCompositionWithChars::HandleBackEvent(TInt /*aEventType*/,
   127                                                              const TDesC& aEventData)
   127                                                              const TDesC& /*aEventData*/)
   128     {
   128     {    
   129     TInt lengthPendown = iContext->RequestData(EAknFepDataTypeLengthWhenButtondownOnBack);
   129     return EFalse;  // If no chars, needn't send to composition again        
   130     
       
   131     TInt* data = (TInt*) aEventData.Ptr();
       
   132     
       
   133     //Get the flag of pen up or timer out, true when timer out, false when pen up
       
   134     data++;
       
   135     
       
   136     if ( 1 >= iContext->CompositionFieldStringLength() ) // if no chars
       
   137         {
       
   138         iContext->SendEventToVkbControl(EVkbEventComposition2Standby,NULL);
       
   139         
       
   140         if ( *data == EFalse )  // pen up
       
   141             {
       
   142             iUiStateMgr->SetCurrentUiState(iUiStateMgr->UiStateStandbycn());                       
       
   143             iContext->ForceEditGainFocus(EInputContextFieldGetFocus);              
       
   144             }            
       
   145         }
       
   146     return EFalse;  // If no chars, needn't send to composition again
       
   147         
       
   148     }
   130     }
   149     
   131     
   150 // -----------------------------------------------------------------------------
   132 // -----------------------------------------------------------------------------
   151 // CAknFepVkbUiStateCompositionWithChars::HandleEnterSpaceEvent
   133 // CAknFepVkbUiStateCompositionWithChars::HandleEnterSpaceEvent
   152 // (other items were commented in a header).
   134 // (other items were commented in a header).