SDK/TextAreaWidget: Fix insertion with accents
This commit is contained in:
parent
60fee4bba6
commit
2960157f8f
|
|
@ -230,7 +230,7 @@ namespace Ndk
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Nz::String currentText = m_drawer.GetText();
|
Nz::String currentText = m_drawer.GetText();
|
||||||
currentText.Insert(m_cursorPosition, text);
|
currentText.Insert(currentText.GetCharacterPosition(m_cursorPosition), text);
|
||||||
SetText(currentText);
|
SetText(currentText);
|
||||||
|
|
||||||
m_cursorPosition += text.GetLength();
|
m_cursorPosition += text.GetLength();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue