1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

renamed Unicode -> TextOperations, to use for all text processing

This commit is contained in:
Ivan Savenko
2023-02-12 23:52:35 +02:00
parent 65c020ef34
commit acdb8d6e06
19 changed files with 142 additions and 123 deletions

View File

@@ -570,12 +570,12 @@ void CTextInput::keyPressed(const SDL_Keycode & key)
case SDLK_BACKSPACE:
if(!newText.empty())
{
Unicode::trimRight(newText);
TextOperations::trimRightUnicode(newText);
redrawNeeded = true;
}
else if(!text.empty())
{
Unicode::trimRight(text);
TextOperations::trimRightUnicode(text);
redrawNeeded = true;
}
break;