diff options
author | sfan5 <sfan5@live.de> | 2021-03-19 18:44:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 18:44:32 +0100 |
commit | 96d4df995c1baf364217699cd43e5ab71918c9d8 (patch) | |
tree | 531fef95d5886805191e74d0a1bf418e146e1f61 /src/gui/guiEditBox.cpp | |
parent | 285ba74723695c4b51192dac0e1e17c5d8f880db (diff) | |
download | minetest-96d4df995c1baf364217699cd43e5ab71918c9d8.tar.gz minetest-96d4df995c1baf364217699cd43e5ab71918c9d8.tar.bz2 minetest-96d4df995c1baf364217699cd43e5ab71918c9d8.zip |
Drop old text input workarounds (#11089)
* Drop unused intlGUIEditBox
* Drop unnecessary Linux text input workarounds
Diffstat (limited to 'src/gui/guiEditBox.cpp')
-rw-r--r-- | src/gui/guiEditBox.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/gui/guiEditBox.cpp b/src/gui/guiEditBox.cpp index 79979dbc3..cd5a0868d 100644 --- a/src/gui/guiEditBox.cpp +++ b/src/gui/guiEditBox.cpp @@ -208,31 +208,10 @@ bool GUIEditBox::OnEvent(const SEvent &event) } } break; - case EET_KEY_INPUT_EVENT: { -#if (defined(__linux__) || defined(__FreeBSD__)) || defined(__DragonFly__) - // ################################################################ - // ValkaTR: - // This part is the difference from the original intlGUIEditBox - // It converts UTF-8 character into a UCS-2 (wchar_t) - wchar_t wc = L'_'; - mbtowc(&wc, (char *)&event.KeyInput.Char, - sizeof(event.KeyInput.Char)); - - // printf( "char: %lc (%u) \r\n", wc, wc ); - - SEvent irrevent(event); - irrevent.KeyInput.Char = wc; - // ################################################################ - - if (processKey(irrevent)) - return true; -#else + case EET_KEY_INPUT_EVENT: if (processKey(event)) return true; -#endif // defined(linux) - break; - } case EET_MOUSE_INPUT_EVENT: if (processMouse(event)) return true; |