main.c (main): The Shift+ESC console key bing is not restricted to LSHIFT

any more: changed the mask from KMOD_LSHIFT to KMOD_SHIFT.


git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@22 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-02-16 12:05:29 +00:00
parent 3e501fd591
commit c6b4d392cc
1 changed files with 2 additions and 2 deletions

View File

@ -113,8 +113,8 @@ int main(int argc, char *argv[])
break;
case SDL_KEYDOWN:
case SDL_KEYUP:
// LSHIFT + ESC and circomflex always opens the console no matter what
if ((event.key.keysym.sym == SDLK_ESCAPE && (event.key.keysym.mod & KMOD_LSHIFT) != 0)
// SHIFT + ESC and circomflex always opens the console no matter what
if ((event.key.keysym.sym == SDLK_ESCAPE && (event.key.keysym.mod & KMOD_SHIFT))
|| (event.key.keysym.sym == SDLK_CARET))
{
if (event.key.type == SDL_KEYDOWN)