aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiChatConsole.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-03-19 18:44:32 +0100
committerGitHub <noreply@github.com>2021-03-19 18:44:32 +0100
commit96d4df995c1baf364217699cd43e5ab71918c9d8 (patch)
tree531fef95d5886805191e74d0a1bf418e146e1f61 /src/gui/guiChatConsole.cpp
parent285ba74723695c4b51192dac0e1e17c5d8f880db (diff)
downloadminetest-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/guiChatConsole.cpp')
-rw-r--r--src/gui/guiChatConsole.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/guiChatConsole.cpp b/src/gui/guiChatConsole.cpp
index ef471106d..a4e91fe78 100644
--- a/src/gui/guiChatConsole.cpp
+++ b/src/gui/guiChatConsole.cpp
@@ -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;
}
}