keys.c: Ignore control characters in Char_Event(), to prevent text input when pressing ctrl-c/ctrl-v.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1115 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
svdijk 2014-10-15 05:58:54 +00:00
parent 985115faed
commit 77e62b4750

View file

@ -1076,6 +1076,13 @@ void Char_Event (int key)
if (key < 32 || key > 126)
return;
#if defined(PLATFORM_OSX) || defined(PLATFORM_MAC)
if (keydown[K_COMMAND])
return;
#endif
if (keydown[K_CTRL])
return;
if (key_inputgrab.active)
{
key_inputgrab.lastchar = key;