equal
deleted
inserted
replaced
1116 // In EMAIL and URL mode, don't allow changes that would result |
1116 // In EMAIL and URL mode, don't allow changes that would result |
1117 // in an illegal string; if there is '/n' or '/f', and line breaks |
1117 // in an illegal string; if there is '/n' or '/f', and line breaks |
1118 // are not supported, chars need to be changed to space |
1118 // are not supported, chars need to be changed to space |
1119 // SetText function before actual text change checks if line |
1119 // SetText function before actual text change checks if line |
1120 // breaks are not supported |
1120 // breaks are not supported |
1121 SetTextL(*res); |
1121 TPtr16 text = res->Des(); |
|
1122 TInt tmpPos; |
|
1123 |
|
1124 if ((text.Locate(TChar('\n'))) >=0 || |
|
1125 (text.Locate(TChar('\f'))) >=0) |
|
1126 { |
|
1127 tmpPos = CEikEdwin::CursorPos(); |
|
1128 SetTextL(*res); |
|
1129 CEikEdwin::SetCursorPosL(tmpPos, EFalse); |
|
1130 } |
|
1131 |
1122 textChanged = ETrue; |
1132 textChanged = ETrue; |
1123 CleanupStack::Pop(res); |
1133 CleanupStack::Pop(res); |
1124 delete res; |
1134 delete res; |
1125 } |
1135 } |
1126 |
1136 |