Mgv6 mudflow: Remove decoration if 'dirt with grass' below flows away (#5798)
[oweals/minetest.git] / src / guiChatConsole.cpp
index 4af1caa80c75e7fb486d60a190e1d93408af928e..5bb80bbbe1b8c44931d5d7f2725f310b5bbcf718 100644 (file)
@@ -627,9 +627,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
                        bool backwards = event.KeyInput.Shift;
                        prompt.nickCompletion(names, backwards);
                        return true;
-               }
-               else if(isprint(event.KeyInput.Char) && !event.KeyInput.Control)
-               {
+               } 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) );