Fixed input of long UTF-8 symbols in editor (#1423)

fix-squashed-planets
Evgeny Pestov 2021-12-14 21:52:55 +07:00
parent faa4eaae20
commit 9269a55e8b
1 changed files with 4 additions and 1 deletions

View File

@ -492,7 +492,10 @@ bool CEdit::EventProcess(const Event &event)
if ( event.type == EVENT_TEXT_INPUT && !bControl && m_bFocus )
{
auto data = event.GetData<TextInputData>();
Insert(data->text[0]); // TODO: insert utf-8 char
for ( char c : data->text )
{
Insert(c);
}
SendModifEvent();
return true;
}