diff --git a/src/conio/sdl_con.c b/src/conio/sdl_con.c index 2918a03f939bb0fa3e5d2096816379e87aec8f5d..0649ea6a65ae1435073c7c8a4100b162f53cbd9b 100644 --- a/src/conio/sdl_con.c +++ b/src/conio/sdl_con.c @@ -1193,6 +1193,12 @@ int main(int argc, char **argv) break; case SDL_KEYDOWN: /* Keypress */ if(ev.key.keysym.unicode > 0 && ev.key.keysym.unicode <= 0x7f) { /* ASCII Key (Whoopee!) */ + /* ALT-TAB stuff doesn't work correctly inder Win32, + * seems ot pass a whole slew of TABs though here. + * Kludge-fix 'em by ignoring all ALT-TAB keystrokes + * that appear to be a tab */ + if(ev.key.keysym.unicode=='\t' && ev.keykeysym.mode & KMOD_ALT) + break; /* Need magical handling here... * if ALT is pressed, run 'er through * sdl_get_char_code() ANYWAYS unless