summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/guiChatConsole.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp
index b3c119555..4af1caa80 100644
--- a/src/guiChatConsole.cpp
+++ b/src/guiChatConsole.cpp
@@ -628,7 +628,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
prompt.nickCompletion(names, backwards);
return true;
}
- else if(event.KeyInput.Char != 0 && !event.KeyInput.Control)
+ else if(isprint(event.KeyInput.Char) && !event.KeyInput.Control)
{
#if defined(__linux__) && (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 9)
wchar_t wc = L'_';