- fixed backspace and paste with special characters

This commit is contained in:
SoftCoder 2015-11-09 14:55:13 -08:00
parent 312a4e8a64
commit 8c6050ec6f
1 changed files with 8 additions and 4 deletions

View File

@ -104,10 +104,14 @@ bool ChatManager::textInput(std::string inputText) {
string textToAdd=inputText.substr (0,maxpaste);
if(editEnabled && (int)text.length() < maxTextLenAllowed) {
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
for(unsigned int idx = 0; idx < textToAdd.size(); ++idx) {
textCharLength.push_back(1);
}
this->text +=textToAdd;
// for(unsigned int idx = 0; idx < textToAdd.size(); ++idx) {
// textCharLength.push_back(1);
// }
// this->text +=textToAdd;
WString addText(textToAdd);
appendText(addText.cw_str(), false, false);
updateAutoCompleteBuffer();
return true;
}