[SDL] Alt-F4 not working on Windows

Graham Houston graham.houston at rushpark.co.uk
Mon May 5 12:03:07 PDT 2008


On Mon, 05 May 2008 19:39:22 +0100, Erik <libsdl.org at mail.obsequious.org>  
wrote:

> You can't usefully block control-alt-delete on Windows, so that's not a
> problem. Incidentally, I believe that alt-f4, control-alt-delete and
> alt-tab, by virtue of being Windows application/window management  
> functions,
> should (in the vast majority of cases) sacrosanct because they should be
> available even if you don't know anything about the game, on anybody's
> Windows machine. If you change those, anybody not familiar with your
> application is going to be screwed. In effect your game is changing the
> rules of the OS, which is not acceptable IMO. unless we are talking
> emulators, most applications are not little worlds unto themselves. They  
> are
> apps on a platform and they should obey the platform convention to a at
> least the minimal extent that you can close or navigate away from the  
> app.
> Not making that the default behavior encourages abuse IMO.
>

"in the vast majority of cases" being the key here! but as you said  
yourself "emulators" or system apps that are intended to be the only thing  
running on the OS's Window Manager.. for example full screen apps that IMO  
are no longer window apps rather something that is utilizing the OS as a  
whole to do something specific. What's the harm with giving more overall  
control to the developer if that's what they need.

Again I bring up the UI interface inside an SDL application, how can the  
SDL UI function as people expect it to if the key combo's it relies on are  
being used by the OS under the app. I have a window running inside my  
fullscreen SDL app I want ALT+F4 to close this window not the window the  
app is running inside and I also want ALT+TAB to switch windows in my app  
not the apps running on the OS.


Graham


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the SDL mailing list