1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-22 04:20:18 +02:00

Fix shift key producing space in console (#5777)

* Fix shift key producing space in console
This commit is contained in:
Craig Davison 2017-05-20 11:29:31 +01:00 committed by Loïc Blot
parent 00972d42d7
commit 605599b6f1

View 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'_';