textinput/peninputgenericitut/src/peninputitutchnuistatepredict.cpp
branchRCL_3
changeset 10 6defe5d1bd39
parent 0 eb1f2e154e89
child 12 4eb1ae11334f
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
   123         
   123         
   124     //hide navi button
   124     //hide navi button
   125     iOwner->LayoutContext()->ShowArrowBtn(0);
   125     iOwner->LayoutContext()->ShowArrowBtn(0);
   126     
   126     
   127     //hide indicator 
   127     //hide indicator 
   128     iOwner->LayoutContext()->Control(ECtrlIdIndicator)->Hide(ETrue);        
   128     iOwner->LayoutContext()->Control(ECtrlIdIndicator)->Hide(ETrue);     
       
   129     // Show ICF, Backspace after position changed to avoid flick
       
   130     iOwner->LayoutContext()->Control(ECtrlIdICF)->Hide( EFalse );
       
   131     iOwner->LayoutContext()->Control(ECtrlIdBackspace)->Hide( EFalse );
   129     }
   132     }
   130 
   133 
   131 void CChnItutUiStatePredict::OnExit()
   134 void CChnItutUiStatePredict::OnExit()
   132     {
   135     {
   133     // hide dropdownlist & reset its status
   136     // hide dropdownlist & reset its status
   141         static_cast<CFepCtrlDropdownList*>(iOwner->LayoutContext()->Control(ECtrlIdStdCandsList));
   144         static_cast<CFepCtrlDropdownList*>(iOwner->LayoutContext()->Control(ECtrlIdStdCandsList));
   142     candlist->ResetAndClear(CFepCtrlDropdownList::EListExpandable);
   145     candlist->ResetAndClear(CFepCtrlDropdownList::EListExpandable);
   143     iOwner->DataMgr()->ClearChnCandidates(EItutCandidates);
   146     iOwner->DataMgr()->ClearChnCandidates(EItutCandidates);
   144     candlist->Hide(ETrue);
   147     candlist->Hide(ETrue);
   145     
   148     
   146     //show navi button
       
   147     iOwner->LayoutContext()->ShowArrowBtn(EBtnArrowLeft | EBtnArrowRight
       
   148              | EBtnArrowUp| EBtnArrowDown);
       
   149     
       
   150     //show indicator 
   149     //show indicator 
   151     iOwner->LayoutContext()->Control(ECtrlIdIndicator)->Hide(EFalse);
   150     iOwner->LayoutContext()->Control(ECtrlIdIndicator)->Hide(EFalse);
       
   151     // Hide ICF, Backspace, Arrow contrls when exit to avoid flick
       
   152     iOwner->LayoutContext()->Control(ECtrlIdICF)->Hide( ETrue );
       
   153     iOwner->LayoutContext()->Control(ECtrlIdBackspace)->Hide(ETrue);
       
   154     iOwner->LayoutContext()->ShowArrowBtn(0);
   152     
   155     
   153     }
   156     }
   154 
   157 
   155 TBool CChnItutUiStatePredict::HandleKeyL(TInt aCmd, TInt aKey)
   158 TBool CChnItutUiStatePredict::HandleKeyL(TInt aCmd, TInt aKey)
   156     {
   159     {