diff options
author | Craig Davison <craig@davison.io> | 2017-05-20 11:29:31 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-05-20 12:29:31 +0200 |
commit | 605599b6f150b89ba6539c4d088231b326adcb48 (patch) | |
tree | 1078b8e2b1497c6639b63f3d994b5b470f92e77a | |
parent | 00972d42d7ad5873f4ef1f487a6786d6b3dbcc39 (diff) | |
download | minetest-605599b6f150b89ba6539c4d088231b326adcb48.tar.gz minetest-605599b6f150b89ba6539c4d088231b326adcb48.tar.bz2 minetest-605599b6f150b89ba6539c4d088231b326adcb48.zip |
Fix shift key producing space in console (#5777)
* Fix shift key producing space in console
-rw-r--r-- | src/guiChatConsole.cpp | 2 |
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'_'; |