From 605599b6f150b89ba6539c4d088231b326adcb48 Mon Sep 17 00:00:00 2001 From: Craig Davison Date: Sat, 20 May 2017 11:29:31 +0100 Subject: Fix shift key producing space in console (#5777) * Fix shift key producing space in console --- src/guiChatConsole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/guiChatConsole.cpp') 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'_'; -- cgit v1.2.3