test/testdrawchessboard.c
changeset 9609 897b25f560d0
parent 9607 7746ab058d12
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9608:17d2af576814 9609:897b25f560d0
    66 			emscripten_cancel_main_loop();
    66 			emscripten_cancel_main_loop();
    67 #endif
    67 #endif
    68 			return;
    68 			return;
    69 		}
    69 		}
    70 
    70 
    71 		if(e.key.keysym.sym == SDLK_ESCAPE) {
    71 		if ((e.type == SDL_KEYDOWN) && (e.key.keysym.sym == SDLK_ESCAPE)) {
    72 			done = 1;
    72 			done = 1;
    73 #ifdef __EMSCRIPTEN__
    73 #ifdef __EMSCRIPTEN__
    74 			emscripten_cancel_main_loop();
    74 			emscripten_cancel_main_loop();
    75 #endif
    75 #endif
    76 			return;
    76 			return;