| Summary: | Windows "default beep" when any Alt+Key is used | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Alistair John Strachan <alistair> |
| Component: | events | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | amaranth72, ensiform, eruditionalsoul |
| Version: | 2.0.3 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 8 | ||
| Attachments: | Modified SDL_windowsevents.c | ||
|
Description
Alistair John Strachan
2009-10-25 16:39:02 UTC
This is fixed in subversion with revision 5262. You can get the fix here: http://www.libsdl.org/tmp/SDL-1.2.zip (In reply to comment #1) > This is fixed in subversion with revision 5262. > You can get the fix here: > http://www.libsdl.org/tmp/SDL-1.2.zip Cheers Sam, confirmed. Great, thanks! This is now happening on windows 8.1 with SDL 2.0.3. I added this code to the SDL_windowsevent.c in the WIN_WindowProc function:
case WM_MENUCHAR:
{
return MNC_CLOSE << 16;
}
break;
Which resolved the issue.
Created attachment 1892 [details]
Modified SDL_windowsevents.c
Here is the file I modified.
The correct fix for this is to handle the WM_SYSCOMMAND SC_KEYMENU and return similar to how SDL2 currently eats SC_SCREENSAVE / SC_MONITORPOWER Located https://hg.libsdl.org/SDL/file/8d826bc39a45/src/video/windows/SDL_windowsevents.c#l795 compare wParam & 0xFFF0 and if it is equal to SC_KEYMENU, return 0 (or optionally add a flag like the screensaver though default to true maybe? This bug is same as #2669, reporting there as well. Marking a large number of bugs with the "triage-2.0.4" keyword at once. Sorry if you got a lot of email from this. This is to help me sort through some bugs in regards to a 2.0.4 release. We may or may not fix this bug for 2.0.4, though! |