[SDL] Alt-F4 not working on Windows
Christoph Kobe
christoph at kobenetz.de
Sat May 3 11:49:36 PDT 2008
On Sat, 3 May 2008 11:22:40 -0700 (PDT)
Mason Wheeler <masonwheeler at yahoo.com> wrote:
> ----- 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.
Thanks again, I think today I'm learning quiete a lot. I always thought ALT-F4 was handled by the window manager, but apparently this is not true for windows, maybe for KDE. So maybe it would be a solution to remove the ALT-F4 shortcut from the menu entry, because I think nobody will argue that it's a bug in every SDL program when the menu says <close ALT-F4> but ALT-F4 is not working.
--
Christoph
from Hamburg, Germany
More information about the SDL
mailing list