textinput/peninputfingerhwr/src/peninputfingerhwrstatemanager.cpp
branchRCL_3
changeset 8 4eb1ae11334f
parent 0 eb1f2e154e89
equal deleted inserted replaced
7:6defe5d1bd39 8:4eb1ae11334f
  1152 // .
  1152 // .
  1153 // -----------------------------------------------------------------------------
  1153 // -----------------------------------------------------------------------------
  1154 // 
  1154 // 
  1155 void CPeninputFingerHwrChineseStatePredictSelecting::OnClickBackSpaceL()
  1155 void CPeninputFingerHwrChineseStatePredictSelecting::OnClickBackSpaceL()
  1156     {
  1156     {
  1157     iDataStore.TriggerStr()->DeleteLast();
  1157     iDataStore.TriggerStr()->DeleteAll();
  1158     if (iDataStore.TriggerStr()->IsEmpty())
  1158     iStateManager.SetState(CPeninputFingerHwrStateManagerCn::EPeninputFingerHwrStateStandbyCn);
  1159         {
       
  1160         iDataStore.SetChineseSymbolL();
       
  1161         iDataStore.SetFixChinesePredictiveL();
       
  1162         iStateManager.SetState( CPeninputFingerHwrStateManagerCn::
       
  1163                 EPeninputFingerHwrStatePredictSelectingCn );
       
  1164         }
       
  1165     else
       
  1166         {
       
  1167         iDataStore.DoPredictiveL();
       
  1168         if( iDataStore.PredictiveCount() <= 0 )
       
  1169                 {
       
  1170                 iDataStore.TriggerStr()->DeleteAll();
       
  1171                 iDataStore.SetFixChinesePredictiveL();     
       
  1172                 }
       
  1173         }
       
  1174     }
  1159     }
  1175 
  1160 
  1176    
  1161    
  1177 // -----------------------------------------------------------------------------
  1162 // -----------------------------------------------------------------------------
  1178 // CPeninputFingerHwrChineseStatePredictSelecting::OnEntry()
  1163 // CPeninputFingerHwrChineseStatePredictSelecting::OnEntry()