28 #include "peninputitutwesternuistatematchselection.h" |
28 #include "peninputitutwesternuistatematchselection.h" |
29 #include "peninputgenericitutuimgrbase.h" |
29 #include "peninputgenericitutuimgrbase.h" |
30 #include "peninputgenericitutdatamgr.h" |
30 #include "peninputgenericitutdatamgr.h" |
31 #include "peninputgenericitutlayoutcontext.h" |
31 #include "peninputgenericitutlayoutcontext.h" |
32 #include "peninputgenericitutconverter.h" |
32 #include "peninputgenericitutconverter.h" |
|
33 #include "peninputgenericitutwindowmanager.h" |
33 |
34 |
34 CWesternItutUiStateMatchSelection* CWesternItutUiStateMatchSelection::NewL( |
35 CWesternItutUiStateMatchSelection* CWesternItutUiStateMatchSelection::NewL( |
35 CGenericItutUiMgrBase* aOwner) |
36 CGenericItutUiMgrBase* aOwner) |
36 { |
37 { |
37 CWesternItutUiStateMatchSelection* self = |
38 CWesternItutUiStateMatchSelection* self = |
140 { |
141 { |
141 TInt itemidx = *(TInt*)aEventData.Ptr(); |
142 TInt itemidx = *(TInt*)aEventData.Ptr(); |
142 |
143 |
143 // if press spell, then enter spell mode, otherwise select an item |
144 // if press spell, then enter spell mode, otherwise select an item |
144 // note that spell do not belong to iCandlist |
145 // note that spell do not belong to iCandlist |
145 itemidx == iCandlist.Count() ? |
146 if ( itemidx == iCandlist.Count()) |
146 iOwner->LayoutContext()->UiLayout()->SignalOwner(ESignalEnterSpellMode) : |
147 { |
147 // according to updated ui spec, if select an item, do not commit it |
148 |
148 //ReportItemSelected(ESignalSelectMatchSelectionText, itemidx, ETrue); |
149 iOwner->UiManager()->StartPreventSCTTimer(); |
149 ReportItemSelected(ESignalSelectMatchSelectionText, itemidx, ETrue); |
150 |
|
151 |
|
152 iOwner->LayoutContext()->UiLayout()->SignalOwner(ESignalEnterSpellMode); |
|
153 } |
|
154 else |
|
155 { |
|
156 // according to updated ui spec, if select an item, do not commit it |
|
157 //ReportItemSelected(ESignalSelectMatchSelectionText, itemidx, ETrue); |
|
158 ReportItemSelected(ESignalSelectMatchSelectionText, itemidx, ETrue); |
|
159 } |
|
160 |
150 return ETrue; |
161 return ETrue; |
151 } |
162 } |
152 case EEventChoiceSelected: |
163 case EEventChoiceSelected: |
153 { |
164 { |
154 CFepLayoutChoiceList::SEvent* event = |
165 CFepLayoutChoiceList::SEvent* event = |