javauis/lcdui_akn/lcdui/src/CMIDEdwin.cpp
branchRCL_3
changeset 21 4376525cdefb
parent 17 0fd27995241b
child 23 e5618cc85d74
equal deleted inserted replaced
19:71c436fe3ce0 21:4376525cdefb
  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