Make Shift+Escape toggle the console.

This commit is contained in:
svdijk 2013-03-17 17:31:00 +01:00
parent f36f708b24
commit 8b28e3d0df

View file

@ -148,7 +148,18 @@ IN_TranslateSDLtoQ2Key(unsigned int keysym)
key = K_UPARROW;
break;
case SDLK_ESCAPE:
/* Make Shift+Escape toggle the console. This
really belongs in Key_Event(), but since
Key_ClearStates() can mess up the internal
K_SHIFT state let's do it here instead. */
if (KeyStates[SDLK_LSHIFT] || KeyStates[SDLK_RSHIFT])
{
key = '~';
}
else
{
key = K_ESCAPE;
}
break;
case SDLK_KP_ENTER:
key = K_KP_ENTER;