test/testalpha.c
branchSDL-1.3
changeset 1659 14717b52abc0
parent 1516 4d241ea8a1cd
child 1662 782fd950bd46
child 1895 c121d94672cb
child 3868 b2f59aadec0d
--- a/test/testalpha.c	Mon May 01 06:58:33 2006 +0000
+++ b/test/testalpha.c	Wed May 17 08:18:28 2006 +0000
@@ -505,7 +505,10 @@
 					}
 					break;
 				case SDL_KEYDOWN:
-					/* Any keypress quits the app... */
+					if ( event.key.keysym.sym == SDLK_ESCAPE ) {
+						done = 1;
+					}
+					break;
 				case SDL_QUIT:
 					done = 1;
 					break;