Windows: don't beep on Alt-* key combos (Thanks, historic_bruno!).
authorRyan C. Gordon <icculus@icculus.org>
Tue, 26 May 2015 11:08:30 -0400
changeset 9624 c5e1c4b7b7a1
parent 9623 b381999d8944
child 9625 6d686d166a9e
Windows: don't beep on Alt-* key combos (Thanks, historic_bruno!). Fixes Bugzilla 2669.
src/video/windows/SDL_windowsevents.c
--- a/src/video/windows/SDL_windowsevents.c	Tue May 26 11:01:19 2015 -0400
+++ b/src/video/windows/SDL_windowsevents.c	Tue May 26 11:08:30 2015 -0400
@@ -791,9 +791,13 @@
         }
         return (1);
 
-#if defined(SC_SCREENSAVE) || defined(SC_MONITORPOWER)
     case WM_SYSCOMMAND:
         {
+			if ((wParam & 0xFFF0) == SC_KEYMENU) {
+				return (0);
+			}
+
+#if defined(SC_SCREENSAVE) || defined(SC_MONITORPOWER)
             /* Don't start the screensaver or blank the monitor in fullscreen apps */
             if ((wParam & 0xFFF0) == SC_SCREENSAVE ||
                 (wParam & 0xFFF0) == SC_MONITORPOWER) {
@@ -801,9 +805,9 @@
                     return (0);
                 }
             }
+#endif /* System has screensaver support */
         }
         break;
-#endif /* System has screensaver support */
 
     case WM_CLOSE:
         {