mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Use utf-8 for the Irrlicht clipboard (#11538)
This commit is contained in:
@@ -338,7 +338,7 @@ void GUIChatConsole::drawText()
|
||||
false,
|
||||
false,
|
||||
&AbsoluteClippingRect);
|
||||
} else
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
// Otherwise use standard text
|
||||
@@ -580,8 +580,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
|
||||
const c8 *text = os_operator->getTextFromClipboard();
|
||||
if (!text)
|
||||
return true;
|
||||
std::basic_string<unsigned char> str((const unsigned char*)text);
|
||||
prompt.input(std::wstring(str.begin(), str.end()));
|
||||
prompt.input(utf8_to_wide(text));
|
||||
return true;
|
||||
}
|
||||
else if(event.KeyInput.Key == KEY_KEY_X && event.KeyInput.Control)
|
||||
|
Reference in New Issue
Block a user