finetuning of r736 & 738

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@740 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2012-09-27 12:55:03 +00:00
parent ba5856c2fb
commit 5c7187f96d
1 changed files with 2 additions and 1 deletions

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;