]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
Fix shift key producing space in console (#5777)
authorCraig Davison <craig@davison.io>
Sat, 20 May 2017 10:29:31 +0000 (11:29 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Sat, 20 May 2017 10:29:31 +0000 (12:29 +0200)
* Fix shift key producing space in console

src/guiChatConsole.cpp

index b3c11955533d1e7f3ecfae2db7e7312a40191f44..4af1caa80c75e7fb486d60a190e1d93408af928e 100644 (file)
@@ -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'_';