Message ID | E1ME4dB-0007u5-NE@665xhf1.ch3.sourceforge.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff -u -r1.42 sdl.c --- sdl.c 21 Jun 2007 21:08:02 -0000 1.42 +++ sdl.c 28 Aug 2007 04:09:19 -0000 @@ -201,9 +201,9 @@ break; case 0x45: /* num lock */ case 0x3a: /* caps lock */ - /* SDL does not send the key up event, so we generate it */ - kbd_put_keycode(keycode); - kbd_put_keycode(keycode | 0x80); + if (ev->type == SDL_KEYUP) + kbd_put_keycode(keycode | 0x80); + else kbd_put_keycode(keycode); return; }