equal
deleted
inserted
replaced
94 HBufC* textBuf = HBufC::NewLC(dataPtr.Length()); |
94 HBufC* textBuf = HBufC::NewLC(dataPtr.Length()); |
95 TPtr text = textBuf->Des(); |
95 TPtr text = textBuf->Des(); |
96 text.Zero(); |
96 text.Zero(); |
97 Pbk2PresentationUtils::AppendWithNewlineTranslationL(text, dataPtr); |
97 Pbk2PresentationUtils::AppendWithNewlineTranslationL(text, dataPtr); |
98 |
98 |
|
99 // T9 should be deactivated in all contact editors always |
|
100 DeactivateT9(iContactField.FieldProperty().EditMode()); |
|
101 |
99 if (iContactField.FieldProperty().EditMode() == |
102 if (iContactField.FieldProperty().EditMode() == |
100 EPbk2FieldEditModeLatinOnly) |
103 EPbk2FieldEditModeLatinOnly) |
101 { |
104 { |
102 iControl->SetAknEditorFlags(EAknEditorFlagLatinInputModesOnly); |
|
103 iControl->SetAknEditorSpecialCharacterTable( |
105 iControl->SetAknEditorSpecialCharacterTable( |
104 R_AVKON_SPECIAL_CHARACTER_TABLE_DIALOG ); |
106 R_AVKON_SPECIAL_CHARACTER_TABLE_DIALOG ); |
105 } |
107 } |
106 else |
108 else |
107 { |
109 { |
145 // CreateTextViewL() is flagged as deprecated but if it is not |
147 // CreateTextViewL() is flagged as deprecated but if it is not |
146 // called here the ActivateL() below crashes sometimes. |
148 // called here the ActivateL() below crashes sometimes. |
147 iControl->CreateTextViewL(); |
149 iControl->CreateTextViewL(); |
148 iCaptionedCtrl = iUiBuilder.LineControl(ControlId()); |
150 iCaptionedCtrl = iUiBuilder.LineControl(ControlId()); |
149 iCaptionedCtrl->SetTakesEnterKey(EFalse); |
151 iCaptionedCtrl->SetTakesEnterKey(EFalse); |
|
152 } |
|
153 |
|
154 // -------------------------------------------------------------------------- |
|
155 // CPbk2ContactEditorTextField::DeactivateT9 |
|
156 // -------------------------------------------------------------------------- |
|
157 // |
|
158 void CPbk2ContactEditorTextField::DeactivateT9(TInt8 aEditMode) |
|
159 { |
|
160 if (iControl) |
|
161 { |
|
162 if (aEditMode == EPbk2FieldEditModeLatinOnly) |
|
163 { |
|
164 iControl->SetAknEditorFlags( |
|
165 EAknEditorFlagLatinInputModesOnly | EAknEditorFlagNoT9); |
|
166 } |
|
167 else |
|
168 { |
|
169 iControl->SetAknEditorFlags(EAknEditorFlagNoT9); |
|
170 } |
|
171 } |
150 } |
172 } |
151 |
173 |
152 // -------------------------------------------------------------------------- |
174 // -------------------------------------------------------------------------- |
153 // CPbk2ContactEditorTextField::Control |
175 // CPbk2ContactEditorTextField::Control |
154 // -------------------------------------------------------------------------- |
176 // -------------------------------------------------------------------------- |