textinput/peninputgenericitut/src/peninputgenericitutlayout.cpp
branchRCL_3
changeset 6 6ceef9a83b1a
parent 5 a47de9135b21
child 7 6defe5d1bd39
equal deleted inserted replaced
5:a47de9135b21 6:6ceef9a83b1a
   369     return iCurrentUiMgr;        
   369     return iCurrentUiMgr;        
   370     }
   370     }
   371     
   371     
   372 void CGenericItutUiLayout::SetInputModeL(TInt aMode)
   372 void CGenericItutUiLayout::SetInputModeL(TInt aMode)
   373     {
   373     {
   374     // fix EJML-7HM6GM, e.g. both EStrokeFind and EStroke will be stored as EStroke
   374 		TBool numericOnlyChanged = iDataMgr->IsCharFlagChanged() ? ETrue : EFalse;
   375     if (aMode != iDataMgr->InputMode() || 
   375 		//only number mode need judge it
   376         aMode == EStroke || aMode == EStrokeFind ||
   376 
   377         aMode == EZhuyin || aMode == EZhuyinFind ||
   377 		// fix EJML-7HM6GM, e.g. both EStrokeFind and EStroke will be stored as Estroke  ///// 
   378         ( iDataMgr->IsNumericOnly() && iDataMgr->IsCharFlagChanged() ) )
   378 		if ( aMode != iDataMgr->InputMode() || 
       
   379 			 aMode == EStroke || aMode == EStrokeFind || 
       
   380 			 aMode == EZhuyin || aMode == EZhuyinFind || 
       
   381 			 numericOnlyChanged )
   379         {
   382         {
   380         // deactivate original uimgr first
   383         // deactivate original uimgr first
   381         if (iCurrentUiMgr 
   384         if (iCurrentUiMgr 
   382             && iCurrentUiMgr->CurrentState()
   385             && iCurrentUiMgr->CurrentState()
   383             && iCurrentUiMgr->CurrentState()->StateType() != CGenericItutUiMgrBase::EStateSpelling)
   386             && iCurrentUiMgr->CurrentState()->StateType() != CGenericItutUiMgrBase::EStateSpelling)