Skip to content

Commit 605599b

Browse files
davisonionerzhul
authored andcommittedMay 20, 2017
Fix shift key producing space in console (#5777)
* Fix shift key producing space in console
1 parent 00972d4 commit 605599b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/guiChatConsole.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
628628
prompt.nickCompletion(names, backwards);
629629
return true;
630630
}
631-
else if(event.KeyInput.Char != 0 && !event.KeyInput.Control)
631+
else if(isprint(event.KeyInput.Char) && !event.KeyInput.Control)
632632
{
633633
#if defined(__linux__) && (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 9)
634634
wchar_t wc = L'_';

0 commit comments

Comments
 (0)
Please sign in to comment.