From: Craig Davison Date: Sat, 20 May 2017 10:29:31 +0000 (+0100) Subject: Fix shift key producing space in console (#5777) X-Git-Tag: 0.4.16~97 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=605599b6f150b89ba6539c4d088231b326adcb48;p=oweals%2Fminetest.git Fix shift key producing space in console (#5777) * Fix shift key producing space in console --- 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'_';