projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00972d4
)
Fix shift key producing space in console (#5777)
author
Craig Davison
<craig@davison.io>
Sat, 20 May 2017 10:29:31 +0000
(11:29 +0100)
committer
Loï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
patch
|
blob
|
history
diff --git
a/src/guiChatConsole.cpp
b/src/guiChatConsole.cpp
index b3c11955533d1e7f3ecfae2db7e7312a40191f44..4af1caa80c75e7fb486d60a190e1d93408af928e 100644
(file)
--- 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'_';