finetuning of r736 & 738

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@740 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2012-09-27 12:55:03 +00:00
parent f1cd93e5f9
commit 21fecb189b

View file

@ -374,8 +374,9 @@ void IN_SendKeyEvents (void)
if ((event.key.keysym.unicode & 0xFF80) == 0)
{
usym = event.key.keysym.unicode & 0x7F;
if (sym >= 32 && usym < 32 && modstate & KMOD_CTRL)
if (modstate & KMOD_CTRL && usym < 32 && sym >= 32)
{
/* control characters */
if (modstate & KMOD_SHIFT)
usym += 64;
else usym += 96;