[SDL] Alt-F4 not working on Windows
Mason Wheeler
masonwheeler at yahoo.com
Sat May 3 11:22:40 PDT 2008
----- Original Message ----
From: Christoph Kobe <christoph at kobenetz.de>
To: sdl at libsdl.org
Sent: Saturday, May 3, 2008 11:16:23 AM
Subject: Re: [SDL] Alt-F4 not working on Windows
>Thanks, this is something I was expecting. But since ALT-TAB and CTRL-ALT-DEL still work one could say
>that this is a flaw in the Windows operating system / window manager. Easy enough to blame Microsoft for
>this :-)
Now, I'm all for blaming Microsoft for their multitude of screwups, but this is really just a design issue, and it's perfectly consistent behavior. <ALT>-<F4> is supposed to be handled by the application, but <ALT>-<TAB> and <CTRL>-<ALT>-<DEL> are system-level commands that get handled by the OS. If you press those keystrokes, SDL will probably generate the appropriate keypress event, but since the handler's registered at the OS level and not the application level, you don't see any blocking behavior. <ALT>-<F4>, on the other hand, is a menu shortcut that has to be handled by the application.
More information about the SDL
mailing list