- fixed backspace and paste with special characters
This commit is contained in:
parent
312a4e8a64
commit
8c6050ec6f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue