First post, by dezipaitor
Hi
Since I had several bad contacts with the Windows keys in a DOS game session, I decided to disable these keys when DosBox has input focus.
I know there are little programs out there to solve this problem, but it is hard to find them, and usually nobody can trust them.
The attachement contains a patch file and the whole file sdlmain.cpp from svn revision 3827 .
The code is only compiled for WIN32 (#ifdef), and by default it is inactive. It can be made active in two ways:
Using command line parameter: -disablespecialkeys OR in dosbox.conf file in the [sdl] section by adding the line disablespecialkeys=true
The Windows keys are disabled if DosBox has focus and are enabled if DosBox loses focus.
The configuration is called "special" because it may also be useful for other platforms.
Of course, the code is released under the (DosBox) GPL license.
I hope the code becomes official so everybody can get its advantage.
THX for your GREAT WORK!
EDIT:
Reuploaded attachement due to minor fix.