Need to set SP->key_code here as well.

This commit is contained in:
William McBrine
2017-12-17 01:09:31 -05:00
parent 1d9fc21ce6
commit 6a9fb2078d

View File

@@ -134,6 +134,8 @@ static int _process_key_event(void)
{
if (SP->return_key_modifiers && event.key.keysym.sym == oldkey)
{
SP->key_code = TRUE;
switch (oldkey)
{
case SDLK_RSHIFT:
@@ -151,6 +153,8 @@ static int _process_key_event(void)
default:
break;
}
SP->key_code = FALSE;
}
return -1;