mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Drop old text input workarounds (#11089)
* Drop unused intlGUIEditBox * Drop unnecessary Linux text input workarounds
This commit is contained in:
parent
285ba74723
commit
96d4df995c
7 changed files with 13 additions and 745 deletions
|
@ -607,13 +607,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
|
|||
prompt.nickCompletion(names, backwards);
|
||||
return true;
|
||||
} else if (!iswcntrl(event.KeyInput.Char) && !event.KeyInput.Control) {
|
||||
#if defined(__linux__) && (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 9)
|
||||
wchar_t wc = L'_';
|
||||
mbtowc( &wc, (char *) &event.KeyInput.Char, sizeof(event.KeyInput.Char) );
|
||||
prompt.input(wc);
|
||||
#else
|
||||
prompt.input(event.KeyInput.Char);
|
||||
#endif
|
||||
prompt.input(event.KeyInput.Char);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue