- 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);
|
string textToAdd=inputText.substr (0,maxpaste);
|
||||||
if(editEnabled && (int)text.length() < maxTextLenAllowed) {
|
if(editEnabled && (int)text.length() < maxTextLenAllowed) {
|
||||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
for(unsigned int idx = 0; idx < textToAdd.size(); ++idx) {
|
// for(unsigned int idx = 0; idx < textToAdd.size(); ++idx) {
|
||||||
textCharLength.push_back(1);
|
// textCharLength.push_back(1);
|
||||||
}
|
// }
|
||||||
this->text +=textToAdd;
|
// this->text +=textToAdd;
|
||||||
|
|
||||||
|
WString addText(textToAdd);
|
||||||
|
appendText(addText.cw_str(), false, false);
|
||||||
|
|
||||||
updateAutoCompleteBuffer();
|
updateAutoCompleteBuffer();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user