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 9624c5e1c4b7b7a1
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
     1.1 --- a/src/video/windows/SDL_windowsevents.c	Tue May 26 11:01:19 2015 -0400
     1.2 +++ b/src/video/windows/SDL_windowsevents.c	Tue May 26 11:08:30 2015 -0400
     1.3 @@ -791,9 +791,13 @@
     1.4          }
     1.5          return (1);
     1.6  
     1.7 -#if defined(SC_SCREENSAVE) || defined(SC_MONITORPOWER)
     1.8      case WM_SYSCOMMAND:
     1.9          {
    1.10 +			if ((wParam & 0xFFF0) == SC_KEYMENU) {
    1.11 +				return (0);
    1.12 +			}
    1.13 +
    1.14 +#if defined(SC_SCREENSAVE) || defined(SC_MONITORPOWER)
    1.15              /* Don't start the screensaver or blank the monitor in fullscreen apps */
    1.16              if ((wParam & 0xFFF0) == SC_SCREENSAVE ||
    1.17                  (wParam & 0xFFF0) == SC_MONITORPOWER) {
    1.18 @@ -801,9 +805,9 @@
    1.19                      return (0);
    1.20                  }
    1.21              }
    1.22 +#endif /* System has screensaver support */
    1.23          }
    1.24          break;
    1.25 -#endif /* System has screensaver support */
    1.26  
    1.27      case WM_CLOSE:
    1.28          {