[SDL] Alt-F4 not working on Windows
Jeff
j_post at pacbell.net
Wed Apr 30 23:14:49 PDT 2008
On Wed April 30 2008 20:36, Charles McGarvey wrote:
> Except it's not up to the OS to terminate programs;
If a particular key combination is alleged to be a universal quit for any
program, then it is up to the OS to terminate the program. It's the
equivalent of the Unix 'kill -9' command. Or have I not understood Mason's
complaint?
> The question
> is, should SDL adhere to the standards of the operating system which is
> supports or not. To weigh in, I think it's a good idea in this case.
>
I agree. A good idea, however, is not the same as a requirement. I don't see
the failure to exit upon receiving the <alt><f4> key combination in Windows
without explicit code provided by the programmer as a failure of SDL. As
someone else pointed out, the programmer should provide such code (through
ifdef's if necessary).
Sam certainly has the ability to detect <alt><f4> in the low level code, and
if the underlying OS is Windows, convert it into an SDL_Quit event. It might
be a good idea, but it's not his obligation.
To be fair, I should point out that if my original post caused contention,
it's my fault. In my later years I've become exceedingly weary of
Windows-centric people thinking that they are computer experts because they
are *Windows* experts. It's like claiming to be a master chef because you've
learned how to cook spaghetti very well.
Sam has proven himself to be a master chef. Most of us have not.
Jeff
More information about the SDL
mailing list