changeset 4171:3012f1c37361 SDL-1.2

Fixed bug #619 Description From Tim Angus 2008-08-31 03:38:36 (-) [reply] When pressing "system keys" e.g. ALT+F4 etc., the default for the windib driver is to ignore them completely, whereas with the directx driver they're handled (badly as it turns out). As the windib driver is the default, I assume its behaviour is considered correct, so the following patch makes the directx driver the same in this regard.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 13 Apr 2009 08:44:48 +0000
parents 092c0bc69155
children 48f1406df2a8
files src/video/windx5/SDL_dx5events.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/windx5/SDL_dx5events.c	Mon Apr 13 08:42:09 2009 +0000
+++ b/src/video/windx5/SDL_dx5events.c	Mon Apr 13 08:44:48 2009 +0000
@@ -588,10 +588,7 @@
 
 		/* The keyboard is handled via DirectInput */
 		case WM_SYSKEYUP:
-		case WM_SYSKEYDOWN: {
-			/* Pass syskey to DefWindwoProc (ALT-F4, etc.) */
-		}
-		break;
+		case WM_SYSKEYDOWN:
 		case WM_KEYUP:
 		case WM_KEYDOWN: {
 			/* Ignore windows keyboard messages */;