test/testdrawchessboard.c
changeset 9609 897b25f560d0
parent 9607 7746ab058d12
child 9619 b94b6d0bff0f
     1.1 --- a/test/testdrawchessboard.c	Wed May 20 16:28:21 2015 -0700
     1.2 +++ b/test/testdrawchessboard.c	Thu May 21 21:25:14 2015 +0200
     1.3 @@ -68,7 +68,7 @@
     1.4  			return;
     1.5  		}
     1.6  
     1.7 -		if(e.key.keysym.sym == SDLK_ESCAPE) {
     1.8 +		if ((e.type == SDL_KEYDOWN) && (e.key.keysym.sym == SDLK_ESCAPE)) {
     1.9  			done = 1;
    1.10  #ifdef __EMSCRIPTEN__
    1.11  			emscripten_cancel_main_loop();