textinput/peninputgenericitut/src/peninputitutchnuistatestrokezhuyincomposition.cpp
equal
deleted
inserted
replaced
103 //hide navi button |
103 //hide navi button |
104 iOwner->LayoutContext()->ShowArrowBtn(0); |
104 iOwner->LayoutContext()->ShowArrowBtn(0); |
105 |
105 |
106 //hide indicator |
106 //hide indicator |
107 iOwner->LayoutContext()->Control(ECtrlIdIndicator)->Hide(ETrue); |
107 iOwner->LayoutContext()->Control(ECtrlIdIndicator)->Hide(ETrue); |
|
108 |
|
109 // Show ICF, Backspace after position changed to avoid flick |
|
110 iOwner->LayoutContext()->Control(ECtrlIdICF)->Hide( EFalse ); |
|
111 iOwner->LayoutContext()->Control(ECtrlIdBackspace)->Hide( EFalse ); |
108 } |
112 } |
109 |
113 |
110 void CChnItutUiStateStrokeZhuyinComposition::OnExit() |
114 void CChnItutUiStateStrokeZhuyinComposition::OnExit() |
111 { |
115 { |
112 // hide dropdownlist & reset its status |
116 // hide dropdownlist & reset its status |
119 CFepInputContextField* spellctrl = |
123 CFepInputContextField* spellctrl = |
120 static_cast<CFepInputContextField*>(iOwner->LayoutContext()->Control(ECtrlIdSpellICF)); |
124 static_cast<CFepInputContextField*>(iOwner->LayoutContext()->Control(ECtrlIdSpellICF)); |
121 |
125 |
122 spellctrl->Hide(ETrue); |
126 spellctrl->Hide(ETrue); |
123 |
127 |
124 //show navi button |
|
125 iOwner->LayoutContext()->ShowArrowBtn(EBtnArrowLeft | EBtnArrowRight |
|
126 | EBtnArrowUp| EBtnArrowDown); |
|
127 |
|
128 //show indicator |
128 //show indicator |
129 iOwner->LayoutContext()->Control(ECtrlIdIndicator)->Hide(EFalse); |
129 iOwner->LayoutContext()->Control(ECtrlIdIndicator)->Hide(EFalse); |
130 |
130 // Hide ICF, Backspace, Arrow contrls when exit to avoid flick |
|
131 iOwner->LayoutContext()->Control(ECtrlIdICF)->Hide( ETrue ); |
|
132 iOwner->LayoutContext()->Control(ECtrlIdBackspace)->Hide(ETrue); |
|
133 iOwner->LayoutContext()->ShowArrowBtn(0); |
131 iOwner->DataMgr()->PtiEngine()->ClearCurrentWord(); |
134 iOwner->DataMgr()->PtiEngine()->ClearCurrentWord(); |
132 } |
135 } |
133 |
136 |
134 TBool CChnItutUiStateStrokeZhuyinComposition::HandleKeyL(TInt /*aCmd*/, TInt aKey) |
137 TBool CChnItutUiStateStrokeZhuyinComposition::HandleKeyL(TInt /*aCmd*/, TInt aKey) |
135 { |
138 { |