# WM Keys

**URL:** <https://discourse.libsdl.org/t/wm-keys/15310>\
**Category:** SDL Development\
**Created:** [May 6, 2008, 1:08am UTC](https://discourse.libsdl.org/t/wm-keys/15310 "2008-05-06T01:08:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Graham\_Houston](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/g/8edcca/32.png) [@Graham\_Houston](https://discourse.libsdl.org/u/Graham_Houston)\
**Post date:** [May 6, 2008, 1:08am UTC](https://discourse.libsdl.org/t/wm-keys/15310/1 "2008-05-06T01:08:18Z")

</div>

hi all; I just want to break away from the ALT+F4 key thread here as I  
think a few people “self included” are getting confused with what  
everybody else is talking about.

\*\* And just to make it clear I’m not talking about SDL\_QUIT event being  
called when you hold ALT+F4 \*\*

I’d like to have the ability in SDL to disable the Window Manager keys  
including ALT+F4, there are many reasons for not wanting the default  
behaviour of these keys such as ALT+TAB, think about VNC in fullscreen  
mode! you don’t want ALT+TAB to change the VNC app to another app running  
on your desktop you want it to change the window app running in your VNC  
to another app.

people have mentioned it is standard behaviour as pointed out by W3C, I’d  
also point out that even the W3C standard allows you to prevent the  
default behaviour for these keys!! and I know we’re not talking about  
W3C’s standard regarding DOM but you can even trap ALT+F4 keys in an HTML  
document and preventDefault stopping the “browser” from closing! I’ll also  
point out that Windows allows you to do this via code also as even they  
know that it’s not always desirable behaviour.

I’d like very much for SDL to have some kinda SDL\_enableWMKeys(true|false)  
or something similar, even if that means its true by default. I would just  
like to have full control of these keys… now I know people will point out  
CTRL+ALT+DEL is impossible to trap on many OS’s but that I can live with  
and I’d never imagine way I’d want to use CTRL+ALT+DEL for anything it’s  
perhaps way these keys was chosen…

The key [Sys Rq] was once a key that allowed you to send key presses to  
the underlaying OS from an overlaying terminal because the terminal used  
OS key combo’s for its own use.

hugs and kisses–  
Using Opera’s revolutionary e-mail client: [http://www.opera.com/mail/](http://www.opera.com/mail/)

---

<div class="post-metadata">

**Author:** ![Graham\_Houston](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/g/8edcca/32.png) [@Graham\_Houston](https://discourse.libsdl.org/u/Graham_Houston)\
**Post date:** [May 6, 2008, 1:44am UTC](https://discourse.libsdl.org/t/wm-keys/15310/2 "2008-05-06T01:44:02Z")

</div>

> hi all; I just want to break away from the ALT+F4 key thread here as I  
> think a few people “self included” are getting confused with what  
> everybody else is talking about.
> 
> \*\* And just to make it clear I’m not talking about SDL\_QUIT event being  
> called when you hold ALT+F4 \*\*
> 
> I’d like to have the ability in SDL to disable the Window Manager keys  
> including ALT+F4, there are many reasons for not wanting the default  
> behaviour of these keys such as ALT+TAB, think about VNC in fullscreen  
> mode! you don’t want ALT+TAB to change the VNC app to another app  
> running on your desktop you want it to change the window app running in  
> your VNC to another app.
> 
> people have mentioned it is standard behaviour as pointed out by W3C,  
> I’d also point out that even the W3C standard allows you to prevent the  
> default behaviour for these keys!! and I know we’re not talking about  
> W3C’s standard regarding DOM but you can even trap ALT+F4 keys in an  
> HTML document and preventDefault stopping the “browser” from closing!  
> I’ll also point out that Windows allows you to do this via code also as  
> even they know that it’s not always desirable behaviour.
> 
> I’d like very much for SDL to have some kinda  
> SDL\_enableWMKeys(true|false) or something similar, even if that means  
> its true by default. I would just like to have full control of these  
> keys… now I know people will point out CTRL+ALT+DEL is impossible to  
> trap on many OS’s but that I can live with and I’d never imagine way I’d  
> want to use CTRL+ALT+DEL for anything it’s perhaps way these keys was  
> chosen…
> 
> The key [Sys Rq] was once a key that allowed you to send key presses to  
> the underlaying OS from an overlaying terminal because the terminal used  
> OS key combo’s for its own use.
> 
> hugs and kisses

okay I just noticed W3C and WC3 world of world of warcraft3 🙂 even tho my  
point is still vaild.

GrahamOn Tue, 06 May 2008 02:08:18 +0100, Graham Houston \<@Graham\_Houston\> wrote:

–  
Using Opera’s revolutionary e-mail client: [Opera Web Browser | Faster, Safer, Smarter | Opera](http://www.opera.com/mail/)
